Warning:Exception while processing task java.io.FileNotFoundException

一时失言乱红尘 2022-05-31 12:10 252阅读 0赞

Warning:Exception while processing task java.io.FileNotFoundException: app\build\intermediates\proguard-rules\release\aapt_rules.txt (The system cannot find the path specified)

  1. Under ‘app’ module, in build.gradle file.

buildTypes:

buildTypes {

release {

minifyEnabled true

proguardFiles getDefaultProguardFile( ‘proguard-android.txt’ ), ‘proguard-rules.pro’

}

}

Delete blank proguard file. Because I put rules in proguard-rules.pro file, so I delete getDefaultProguardFile(‘proguard-android.txt’ ),left only ‘proguard-rules.pro’.Just as follows:

buildTypes {

release {

minifyEnabled true

proguardFiles ‘proguard-rules.pro’

}

}

  1. Delete the folder build in Moudle and rebuild.

发表评论

表情:
评论列表 (有 0 条评论,252人围观)

还没有评论,来说两句吧...

相关阅读