Error:Execution failed for task :app:transformClassesAndResourcesWithproguardforrelease

Bekomme ich folgende exception beim erstellen signierte apk-Datei (Wenn ich einfach bauen-Anwendung in der Version hier ist kein Fehler) :

Information:Gradle tasks [:api:assemble, :app:assembleRelease]
Warning:Ignoring Android API artifact com.google.android:android:2.2.1 for debug
Warning:Ignoring Android API artifact com.google.android:android:2.2.1 for release
Warning:Ignoring Android API artifact com.google.android:android:2.2.1 for staging
Warning:com.viewpagerindicator.LinePageIndicator: can't find referenced method 'float ceil(float)' in library class android.util.FloatMath
Warning:there were 1 unresolved references to library class members.
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.
Information:BUILD FAILED
Information:Total time: 26.173 secs
Information:1 error
Information:6 warnings

hier ist das gradle-log :

Warning: there were 21 unresolved references to classes or interfaces.
         You may need to add missing library jars or update their versions.
         If your code works fine without the missing classes, you can suppress
         the warnings with '-dontwarn' options.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: there were 1 unresolved references to library class members.
         You probably need to update the library versions.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)

Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.

was ich getan habe, ist, dass ich das ändern proguard-rules.pro - Datei zu beheben Ausnahme verursacht Päckchen. Ich fand heraus, eine Antwort in stackoverflow..

hier ist, wie es aussieht :

-keep class com.zzoome.android.Views.TagGroup.**
-dontwarn com.zzoome.android.Views.TagGroup.**

-keepclassmembers class * implements android.os.Parcelable {
    static ** CREATOR;
}
So endlich gelöst, das Problem ?
NÖ, immer noch die Fehlermeldung erhalten, während Sie versuchen, zu bauen signierte apk 🙁
Hat u versuchen mit Build - Clean ? auch minifyEnabled false
Wenn ich minifyEnabled falsch ich bekomme keine Fehler, aber proguared -Regeln funktionieren nicht
Ich stehe vor demselben Problem nach der Aktualisierung von android Studio zu 2.2.2. Können Sie mir bitte helfen, wie dieses Problem behoben?

InformationsquelleAutor Nininea | 2016-10-19

Schreibe einen Kommentar