Android studio打包中遇到的問題
Please correct the above warnings first.
解決方法:
在proguard-rules.pro混淆文件中加入-ignorewarnings
Warning:Exception while processing task java.io.IOException: The same input jar […….jar] is specified twice.
解決方法如下:
在proguard-rules.pro混淆文件中所有的-libraryjars 前插入 # 成 #-libraryjars xxxx.jar
原因是build.gradle文件配置了
dependencies {
compile fileTree(include: '*.jar', dir: 'libs')
}
里面已經(jīng)添加過jar包添坊,混淆文件proguard-rules.pro里面又加了句-libraryjars libs/.jar,將-libraryjars libs/.jar 前面用#號注釋或者直接刪掉即可步悠。