[已解决]Error:Removing unused resources requires unused code shrinking to be turned on.

修改APP文件夹里面的build.gradle
 
  
buildTypes {

    debug {
        signingConfig signingConfigs.release
        buildConfigField "boolean", "ISDEBUG", "true"
        debuggable true
        minifyEnabled true
        shrinkResources true
      proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }

    release {
        signingConfig signingConfigs.release
        minifyEnabled true
        zipAlignEnabled true
        debuggable true
        shrinkResources true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}


你可能感兴趣的:(Android开发)