Proguard returned with error code 1, error can't find referenced class android.support.v4.app

浪尽此生 提交于 2019-12-06 15:29:09
ZeroOne

this is what i do in my proguard for android support

#########--------Android Support--------#########
-keep class android.support.v4.app.** { *; }
-keep interface android.support.v4.app.** { *; }
-dontwarn android.support.**

As indicated by the link to the ProGuard Troubleshooting page in your console log, you should change the target in project.properties to a target that contains the missing classes. In this case: "android-18" or maybe "Google Inc.:Google APIs:18".

You can still specify a different minSdkVersion in AndroidManifest.xml.

You should not specify any -libraryjars options, since the Android build process already specifies those options for you -- you'll just see warnings about duplicate classes now. In fact, the Android build process specifies most other options for you as well.

source: here

Try add this line to your proguard file:

-dontwarn android.support.v4.**

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