适用于图书馆的Android-proguard项目

时间:2014-02-11 08:24:34

标签: android proguard

我在我的应用程序中使用了com.tonicartos.widget.stickygridheaders.StickyGridHeadersGridView ... 这是我的proguard-project.txt:

-keep class com.tonicartos.** { *; }
-dontwarn com.tonicartos.**

但发生此错误:

E/AndroidRuntime(6213): FATAL EXCEPTION: main
E/AndroidRuntime(6213): Process: com.myapp, PID: 6213
E/AndroidRuntime(6213): java.lang.NullPointerException
E/AndroidRuntime(6213):     at   com.myapp.a.g.getCount(Unknown Source)
E/AndroidRuntime(6213):     at   com.tonicartos.widget.stickygridheaders.StickyGridHeadersSimpleAdapterWrapper.generateHeader    List(Unknown Source)
E/AndroidRuntime(6213):     at com.tonicartos.widget.stickygridheaders.StickyGridHeadersSimpleAdapterWrapper.<init>(Unknown Source)
E/AndroidRuntime(6213):     at com.tonicartos.widget.stickygridheaders.StickyGridHeadersGridView.setAdapter(Unknown Source)
E/AndroidRuntime(6213):     at com.myapp.fragments.aj.run(Unknown Source)
E/AndroidRuntime(6213):     at android.os.Handler.handleCallback(Handler.java:733)
E/AndroidRuntime(6213):     at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(6213):     at android.os.Looper.loop(Looper.java:136)
E/AndroidRuntime(6213):     at android.app.ActivityThread.main(ActivityThread.java:5017)
E/AndroidRuntime(6213):     at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(6213):     at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(6213):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
E/AndroidRuntime(6213):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
E/AndroidRuntime(6213):     at dalvik.system.NativeStart.main(Native Method)

tnx为您提供帮助!

0 个答案:

没有答案