Android 混淆 ProGuard
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 配置文件build.gradle android { signingConfigs { release { keyAlias 'XXX' keyPassword 'XXX' storeFile file('../key/XXX.jks') // 位置:xxApplication/key/XXX.jks' storePassword 'XXX' } } compileSdkVersion 23 buildToolsVersion "23.0.2" defaultConfig { applicationId "com.XXX.XXX" minSdkVersion 15 targetSdkVersion 22 versionCode 1 versionName "1.0" } buildTypes { release { //日志 buildConfigField "boolean", "LOG_DEBUG", "true" //混淆 minifyEnabled true //Zipalign优化 zipAlignEnabled true //移除无用的resource文件 shrinkResources true //签名 signingConfig signingConfigs.release //的混淆文件