Android项目在混淆的过程中提示如下错误:
Warning:Exception while processing task java.io.IOException: The same input jar [D:\AllKidbot\app\libs\commons-httpclient-3.0-rc4.jar] is specified twice.
解决如下:
从proguard-rules.pro文件中注掉所有 -libraryjars libs/***.jar。原因是
dependencies { compile fileTree(include: '*.jar', dir: 'libs')
}
里面已经添加过jar包,混淆文件proguard-rules.pro里面又加了句-libraryjars libs/***.jar,将-libraryjars libs/***.jar 前面用#号注释或者直接删掉即可。