我的应用已启用Proguard,这会混淆代码。问题是,即使我上传了Proguard的mapping.txt文件,崩溃报告仍然是模糊的。
我故意导致崩溃,以测试反混淆。崩溃发生在方法onCreateView
以下是报告摘要:
Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{co.bstorm.lv_android/co.bstorm.lv_android.home.DiscoverActivity}: java.lang.NullPointerException: Attempt to invoke a virtual method on a null object reference
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2665)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2726)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1477)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6119)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)
在这里你可以清楚地看到代码仍然是模糊的:
Caused by java.lang.NullPointerException: Attempt to invoke a virtual method on a null object reference
co.bstorm.lv_android.home.DiscoverFragment.a (DiscoverFragment.java)
android.support.v4.app.Fragment.b (Fragment.java)
android.support.v4.app.FragmentManagerImpl.a (FragmentManagerImpl.java)
android.support.v4.app.FragmentManagerImpl.u (FragmentManagerImpl.java)
android.support.v4.app.FragmentManagerImpl.a (FragmentManagerImpl.java)
android.support.v4.app.FragmentManagerImpl.a (FragmentManagerImpl.java)
android.support.v4.app.FragmentManagerImpl.g (FragmentManagerImpl.java)
android.support.v4.app.FragmentController.b (FragmentController.java)
android.support.v4.app.FragmentActivity.onStart (FragmentActivity.java)
android.support.v7.app.AppCompatActivity.onStart (AppCompatActivity.java)
android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1248)
android.app.Activity.performStart (Activity.java:6696)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2628)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:2726)
android.app.ActivityThread.-wrap12 (ActivityThread.java)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:1477)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loop (Looper.java:154)
android.app.ActivityThread.main (ActivityThread.java:6119)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:886)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:776)
有谁知道发生了什么事?我无法确定问题是否在我身边,或者是否与Firebase有关。