[英]Proguard error while building an apk using export signed application android
Proguard returned with error code 1. See console
Warning: com.emilsjolander.components.stickylistheaders.StickyListHeadersListView: can't find referenced method 'int getLayoutDirection()' in class com.emilsjolander.components.stickylistheaders.StickyListHeadersListView
Warning: com.emilsjolander.components.stickylistheaders.StickyListHeadersListView: can't find referenced method 'void setLayoutDirection(int)' in class android.view.View
You should check if you need to specify additional program jars.
Warning: there were 2 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile them and try again.
Alternatively, you may have to specify the option
'-dontskipnonpubliclibraryclassmembers'.
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)
Progaurd issue in android, not able to build production version of the apk, but able to run on the device, but when export as signed application,giving me issues android中的Progaurd问题,无法构建apk的正式版,但可以在设备上运行,但是当导出为已签名的应用程序时,出现问题
You will need to update the proguard config with this line: 您将需要使用以下内容更新proguard配置:
-keep class se.emilsjolander.** { *; } -dontwarn se.emilsjolander.**
Hope that helps. 希望能有所帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.