Android Studio 打包错误

top1:uildintermediates es esources-anzhi-debug-stripped.ap_' specified for property 'resourceFile' does not exist

错误产生原因:

shrinkResources true

如果需要设置shrinkResources 为true, 那么, 必须同时开启混淆即可, 即如下minifyEnabled 设置为true:

    shrinkResources true
    zipAlignEnabled true
    minifyEnabled true
    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
原文地址:https://www.cnblogs.com/xBig/p/7007948.html