Proguard问题:使用片段时不打开应用程序?

时间:2013-11-28 10:18:49

标签: android proguard

我将我的应用程序与ABS&我使用proguard并发布在谷歌播放.i在4.0.4测试,它的工作正常。现在我收到来自users.its不工作2.2,2.3设备的错误消息。

堆栈跟踪:

   java.lang.NoSuchMethodError: com.phoneix.divya.GalleryActivity.getActionBar
  at com.phoneix.divya.GalleryActivity.onCreate(Unknown Source)
 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1623)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1675)
at android.app.ActivityThread.access$1500(ActivityThread.java:121)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:943)
at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:138)
at android.app.ActivityThread.main(ActivityThread.java:3701)
 at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:507)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636)
  at dalvik.system.NativeStart.main(Native Method)

Proguard的-project.txt

   -dontwarn com.squareup.picasso.**
  -dontwarn android.support.**
-keep class android.support.v4.app.** { *; } 
-keep interface android.support.v4.app.** { *; } 
  -keep class com.actionbarsherlock.** { *; } 
 -keep interface com.actionbarsherlock.** { *; } 
  -keepattributes *Annotation*
-keep public class * extends android.view.View
 -keep public class * extends android.view.ViewGroup
-keep public class * extends android.support.v4.app.Fragment

0 个答案:

没有答案