Android multidex not supporting with proguard

天大地大妈咪最大 提交于 2019-12-18 04:03:39

问题


I updated all my built tools, supportlibrary and google Play services. But still I am getting the following error:

Error:Execution failed for task ':app:shrinkReleaseMultiDexComponents'

java.io.IOException: The output jar [app\build\intermediates\multi-dex\release\componentClasses.jar] must be specified after an input jar, or it will be empty.

I am able to fix this by setting minifyEnabled to false, but that is not what I want. Does anyone know how to fix it?


回答1:


Finally i able generate APK with

minifyEnabled to true

Actually the issue was some duplicate classes given some warning which i didn't noticed.

For me, i added

-dontwarn com.aphidmobile.**

in proguard-rules.pro, Same way you have to specify which libraries producing duplicate warning.

It worked Great !



来源:https://stackoverflow.com/questions/32537333/android-multidex-not-supporting-with-proguard

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!