android项目打包,gradle aR报错:
java.io.IOException: proguard.ParseException: Unknown option '-if' in line 16 of file
'/Users/xxx/.gradle/caches/transforms-2/files-2.1/daf63c57ae9cde0cfde446d2336b3891/proguard.txt'
修改方法:
将
api 'androidx.appcompat:appcompat:1.3.0-alpha02'
改为:
api 'androidx.appcompat:appcompat:1.0.0'
总结:估计是版本问题。