修改build.gradle文件,添加
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
例:
android { compileSdkVersion 19 buildToolsVersion "24.0.2" aaptOptions.cruncherEnabled = false//添加的代码 aaptOptions.useNewCruncher = false//添加的代码 defaultConfig { applicationId "com.dian.diabetes" minSdkVersion 9 targetSdkVersion 19 } buildTypes { release { minifyEnabled true proguardFiles 'proguard-project.txt' } } }