问题描述:

Im using retrofit2 in my project. When I run the project in debug mode it works fine. But getting following exception when I run the signed build. Whats wrong with my proguard-rules?

used proguard rule for retrofit:

-dontwarn okio.**

-dontwarn retrofit2.Platform$Java8

Exception thrown while using signed apk :

12-16 12:53:17.934 24075-24075/? W/System.err: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference

12-16 12:53:17.934 24075-24075/? W/System.err: at com.xxx.yyyyyy.ba.a(SourceFile:897)

12-16 12:53:17.935 24075-24075/? W/System.err: at ym.run(SourceFile:68)

12-16 12:53:17.935 24075-24075/? W/System.err: at android.os.Handler.handleCallback(Handler.java:739)

12-16 12:53:17.935 24075-24075/? W/System.err: at android.os.Handler.dispatchMessage(Handler.java:95)

12-16 12:53:17.935 24075-24075/? W/System.err: at android.os.Looper.loop(Looper.java:234)

12-16 12:53:17.935 24075-24075/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:5526)

12-16 12:53:17.935 24075-24075/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)

12-16 12:53:17.935 24075-24075/? W/System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)

12-16 12:53:17.935 24075-24075/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

Please help to fix this. Thanks in advance.

相关阅读:
Top