Proguard zurückgegeben, die mit error-code 1. Siehe Konsole java.io.IOException
Beim exportieren meiner Android-Anwendung von der Eclipse-IDE, ich bin immer Fehler wie folgt:
Proguard returned with error code 1. See console
Warning: library class android.net.http.AndroidHttpClient extends or implements program class org.apache.http.client.HttpClient
You should check if you need to specify additional program jars.
Warning: there were 1 instances of library classes depending on program classes.
You must avoid such dependencies, since the program classes will
be processed, while the library classes will remain unchanged.
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)
Projekt.Eigenschaften
# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system edit
# "ant.properties", and override values to adapt the script to your
# project structure.
#
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt
# Project target.
target=android-21
proguard-Projekt
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in ${sdk.dir}/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the ProGuard
# include property in project.properties.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-dontwarn com.google.android.gms.**
-dontwarn javax.jdo.**
-dontwarn com.google.api.client.googleapis.extensions.android.gms.**
-dontwarn org.apache.commons.**
-dontwarn org.ietf.jgss.**
-dontnote
Habe ich Hinzugefügt, dontwarn und dontnote Aussagen zu proguard confing-Datei mit, dass ich beschloss, dass ich einige Warnungen, aber Nicht in der Lage zu lösen Verbleibende Problem.Bitte helfen Sie mir, dieses zu lösen.Vielen, vielen Dank.
- können Sie zeigen, das Projekt properties-Datei für proguard-Konfiguration?
- sehen Sie die bearbeitete Frage für Immobilien-details @Opiatefuchs
- 🙂 , sorry, und bitte die proguard-text-Datei, sorry, das kann ich im moment vergessen, wie der richtige Dateiname ist..
- jetzt können Sie die proguard details zu @Opiatefuchs
- Sie sind mit Eclipse für Android-Entwicklung?
- ja war damals mit Eclipse
Du musst angemeldet sein, um einen Kommentar abzugeben.
Müssen Sie Nur fügen Sie folgenden code zu Ihrem Projekt proguard-project.txt Datei.
Beispiel :
und wenn Sie mehr(unglaubliche) Fehler kommen, dann fügen Sie einfach
Kann dies hilfreich für Sie.
Fügen Sie diese zu Ihrem proguard-Projekt-Datei:
Dann wieder kommen, wenn noch Fehler vorhanden ist.
proguard.ParseException: Expecting java type before ';'
Fehler in Zeile ` -halten-Klasse org.apache.http.** { ; }`;
mit*;
aber immer wieder die gleichen Fehler, wie in Frage.bitte benutzt die Kommentare, bevor Sie den angegebenen code Balg
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt:proguard-google-api-client.txt
Im Projekt.Eigenschaften Datei
Ich habe auch konfrontiert dieses problem. Reinigen Sie das Projekt, und exportieren Sie erneut sollte dieses Problem beheben.
Als Problem wurde durch Bibliothek-Klasse
android.net.http.AndroidHttpClient
undorg.apache.http.client.HttpClient
ich Hinzugefügt -dontwarn Anweisungen für die Bibliothek Klassen proguard-Projekt-Datei. was ich Hinzugefügt ist:und ich bin fertig. Danke Euch allen für die Unterstützung auf diesem.