0

Ich versuche, die signierte apk meiner App zu bauen. Aber ich bin immer den Fehler Pop-up alsAndroid: Proguard Fehler in der Sonnenfinsternis

Proguard returned with error code 1. See console 

und Fehlerprotokoll in der Konsole als:

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

ich nicht in der Lage bin zu verstehen, was das Problem ist. Für die letzte Version funktioniert es gut. Ich unterstütze Marsh Mellow in dieser Version.

Bitte schlagen Sie mir vor, welche Änderungen oder Schritte durchzuführen, um signierte apk mit Proguard Fehler zu bauen.

+0

Bitte benutzen Sie Ihre proguard Regeln zeigen – TejjD

Antwort

0

versuchen, diese Datei zu Proguard Konfiguration hinzuzufügen:

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