Android:日食中的Proguard错误 [英] Android: Proguard error in eclipse

查看:278
本文介绍了Android:日食中的Proguard错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建我的应用程序的签名APK.但是我的错误弹出为

I am trying to built the signed apk of my app. But i am getting the error pop up as

Proguard returned with error code 1. See console

并且将控制台错误登录为:

And error log in console as :

[2016-04-15 11:36:44 - MyApp] Proguard returned with error code 1. See console
[2016-04-15 11:36:44 - MyApp] Note: there were 85 duplicate class definitions.
[2016-04-15 11:36:44 - MyApp] Warning: org.acra.ErrorReporter: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in class android.app.Notification
[2016-04-15 11:36:44 - MyApp]       You should check if you need to specify additional program jars.
[2016-04-15 11:36:44 - MyApp] Warning: there were 1 unresolved references to program class members.
[2016-04-15 11:36:44 - MyApp]          Your input classes appear to be inconsistent.
[2016-04-15 11:36:44 - MyApp]          You may need to recompile them and try again.
[2016-04-15 11:36:44 - MyApp]          Alternatively, you may have to specify the option 
[2016-04-15 11:36:44 - MyApp]          '-dontskipnonpubliclibraryclassmembers'.
[2016-04-15 11:36:44 - MyApp] java.io.IOException: Please correct the above warnings first.
[2016-04-15 11:36:44 - MyApp]   at proguard.Initializer.execute(Initializer.java:321)
[2016-04-15 11:36:44 - MyApp]   at proguard.ProGuard.initialize(ProGuard.java:211)
[2016-04-15 11:36:44 - MyApp]   at proguard.ProGuard.execute(ProGuard.java:86)
[2016-04-15 11:36:44 - MyApp]   at proguard.ProGuard.main(ProGuard.java:492)

我无法理解问题所在.对于最新版本,它可以正常工作.我只是在此版本中为Marsh Mellow提供支持.

I am not able to understand what is the issue. For last version it works fine. I just provide support to Marsh Mellow in this version.

请向我建议在没有Proguard错误的情况下对已签名的APK进行哪些更改或执行哪些步骤.

Please suggest me what changes or steps to perform to built signed apk with out Proguard error.

推荐答案

尝试将其添加到Proguard配置文件中:

Try to add this to Proguard configuration file:

-keep class org.apache.http.** { *; }
-dontwarn org.apache.http.**
-dontwarn android.net.**

这篇关于Android:日食中的Proguard错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆