Android Build with Gradle and ProGuard : “The output jar must be specified after an input jar, or it will be empty”

前提是你 提交于 2019-11-30 08:01:24
osayilgan

It took quite a while for me to figure it out but, as I had guessed, it was all about Proguard configuration.

I started to dig through the Warnings in the Console and realized that some of the References couldn't be found by Proguard. So adding them as -dontwarn to proguard configuration file solved the problem.

In my case, I had to ignore packages below;

-dontwarn java.lang.invoke**
-dontwarn org.apache.lang.**
-dontwarn org.apache.commons.**
-dontwarn com.nhaarman.**
-dontwarn se.emilsjolander.**
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!