ProGuard: “java.exe” exited with code 1 after adding ModernHTTPClient

送分小仙女□ 提交于 2019-11-29 08:46:33

It sounds like all you need to do is add a proguard.cfg file to your project with build action set to ProguardConfiguration to remove any warnings and keep any necessary classes for example:

# General Android
-dontwarn org.apache.http.**
-dontwarn android.net.http.AndroidHttpClient

# Android Support Library
-keep class android.support.multidex.MultiDexApplication
-keep class android.support.v4.**
-keep class android.support.v7.** {
    public *;
}

# Google Play Billing
-keep class com.android.vending.billing.**

# Google Play Services
-dontwarn com.google.android.gms.internal.*
-keep class * extends java.util.ListResourceBundle {
    protected java.lang.Object[][] getContents();
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!