0

私のアプリの署名付きapkを構築しようとしています。私は問題が何であるかを理解することはできませんよAndroid:Proguard error in eclipse

[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) 

:しかし、私は、コンソールに

Proguard returned with error code 1. See console 

、エラーログとしてエラーポップアップを取得しています。最後のバージョンでは正常に動作します。私はこのバージョンのMarsh Mellowにサポートを提供しています。

Proguardのエラーが発生していない署名付きapkを実行するための変更または手順を教えてください。 ProGuardの設定ファイルに以下を追加する

+0

あなたProGuardのルールを使用して表示してください。 – TejjD

答えて

0

試してみてください。

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