2016-07-16 4 views
0

Ich habe proguard aktiviert, um meine Release-APK zu verkleinern. Aber meine App wird danach nicht installieren. Bitte, ich wäre froh, wenn ich Hilfe bekomme, wie ich es beheben kann. Es scheint, dass es keine Methode in einer App-Theme-Engine-Bibliothek finden kann, die ich verwende.Enabled proguard, Meine Build-Release-App wird nicht erneut installiert

AndroidRuntime: FATAL EXCEPTION: main 
Process: com.example.john.music, PID: 8076 
java.lang.RuntimeException: Failed to get ActionView from an ActionMenuItemView: mItemData 
     at com.afollestad.appthemeengine.inflation.a.i(Unknown Source) 
     at com.afollestad.appthemeengine.inflation.a.h(Unknown Source) 
     at com.afollestad.appthemeengine.inflation.a.setIcon(Unknown Source) 
     at android.support.v7.view.menu.ActionMenuItemView.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.view.menu.d.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.view.menu.i.j(Unknown Source) 
     at android.support.v7.view.menu.d.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.view.menu.i.d(Unknown Source) 
     at android.support.v7.view.menu.i.a(Unknown Source) 
     at android.support.v7.view.menu.i.h(Unknown Source) 
     at android.support.v7.a.bj.j(Unknown Source) 
     at android.support.v7.a.bk.run(Unknown Source) 
     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777) 
     at android.view.Choreographer.doCallbacks(Choreographer.java:590) 
     at android.view.Choreographer.doFrame(Choreographer.java:559) 
     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763) 
     at android.os.Handler.handleCallback(Handler.java:739) 
     at android.os.Handler.dispatchMessage(Handler.java:95) 
     at android.os.Looper.loop(Looper.java:145) 
     at android.app.ActivityThread.main(ActivityThread.java:6117) 
     at java.lang.reflect.Method.invoke(Native Method) 
     at java.lang.reflect.Method.invoke(Method.java:372) 
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) 
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) 
    Caused by: java.lang.NoSuchFieldException: mItemData 
     at java.lang.Class.getDeclaredField(Class.java:929) 
     at com.afollestad.appthemeengine.inflation.a.i(Unknown Source) 
     at com.afollestad.appthemeengine.inflation.a.h(Unknown Source) 
     at com.afollestad.appthemeengine.inflation.a.setIcon(Unknown Source) 
     at android.support.v7.view.menu.ActionMenuItemView.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.view.menu.d.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.view.menu.i.j(Unknown Source) 
     at android.support.v7.view.menu.d.a(Unknown Source) 
     at android.support.v7.widget.k.a(Unknown Source) 
     at android.support.v7.view.menu.i.d(Unknown Source) 
     at android.support.v7.view.menu.i.a(Unknown Source) 
     at android.support.v7.view.menu.i.h(Unknown Source) 
     at android.support.v7.a.bj.j(Unknown Source) 
     at android.support.v7.a.bk.run(Unknown Source) 
     at android.view.Choreographer$CallbackRecord.run(Choreographer.java:777) 
     at android.view.Choreographer.doCallbacks(Choreographer.java:590) 
     at android.view.Choreographer.doFrame(Choreographer.java:559) 
     at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:763) 
     at android.os.Handler.handleCallback(Handler.java:739) 
     at android.os.Handler.dispatchMessage(Handler.java:95) 
     at android.os.Looper.loop(Looper.java:145) 
     at android.app.ActivityThread.main(ActivityThread.java:6117) 
     at java.lang.reflect.Method.invoke(Native Method) 
     at java.lang.reflect.Method.invoke(Method.java:372) 
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1399) 
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1194) 

Antwort

0

Gelöst es. Ich konnte eine funktionierende Lösung finden: How to make Proguard ignore external libraries?. Ich fügte hinzu, die diese auf meine proguard Datei:

-keep class javax.** { *; } 
-keep class org.** { *; } 
-keep class com.afollestad.** { *; } 

Die letzte meisten imortant ist, es ist die gesamte Thematisierung Bibliothek, in der einige Klassen nicht gefunden werden konnte.