问题
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