我在Google Play中有一款Android应用。在开发者控制台中,我看到应用程序的onCreate of MainActivity中发生了很多崩溃。
我自己从未见过这种崩溃。仅限Google Play。
我真的不知道问题是什么,或者在哪个方向上搜索解决方案。
完整的堆栈跟踪是
ChatRoomVC
这些类中指向某些代码的行是
java.lang.RuntimeException:
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2984)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3045)
at android.app.ActivityThread.-wrap14 (ActivityThread.java)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1642)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6776)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1518)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by: android.support.v4.app.Fragment$InstantiationException:
at android.support.v4.app.Fragment.instantiate (Fragment.java:431)
at android.support.v4.app.FragmentState.instantiate (Fragment.java:102)
at android.support.v4.app.FragmentManagerImpl.restoreAllState (FragmentManager.java:1952)
at android.support.v4.app.FragmentController.restoreAllState (FragmentController.java:144)
at android.support.v4.app.FragmentActivity.onCreate (FragmentActivity.java:307)
at android.support.v7.app.AppCompatActivity.onCreate (AppCompatActivity.java:58)
at be.gps.android73.activities.LanguageActivity.onCreate (LanguageActivity.java:23)
at be.gps.android73.activities.main.MainActivity.onCreate (MainActivity.java:117)
at android.app.Activity.performCreate (Activity.java:6956)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1126)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2927)
MainActivity是应用程序的主要功能,它显示了一堆不同的片段。它扩展了LanguageActivity。 LanguageActivity扩展了android.support.v7.app.AppCompatActivity
MainActivity的onCreate看起来像
at be.gps.android73.activities.LanguageActivity.onCreate (LanguageActivity.java:23)
at be.gps.android73.activities.main.MainActivity.onCreate (MainActivity.java:117)
LanguageActivity看起来像
@Override
protected void onCreate(final Bundle savedInstanceState)
{
super.onCreate(savedInstanceState); //this is line 117 from the stacktrace
...
任何可能导致此问题的线索或提示?