首页 > 解决方案 > 使用 java.lang.RuntimeException 构建的 android 应用程序在启动时崩溃

问题描述

我们的客户正在报告这些错误,我们无法重现它们。

谷歌播放控制台上的错误:

java.lang.RuntimeException: 
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2981)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3042)
  at android.app.ActivityThread.-wrap14 (ActivityThread.java)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1639)
  at android.os.Handler.dispatchMessage (Handler.java:102)
  at android.os.Looper.loop (Looper.java:154)
  at android.app.ActivityThread.main (ActivityThread.java:6780)
  at java.lang.reflect.Method.invoke (Native Method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1500)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1390)
Caused by: java.lang.RuntimeException: 
  at host.exp.exponent.c.a.a (NativeModuleDepsProvider.java:108)
  at host.exp.exponent.c.a.b (NativeModuleDepsProvider.java:100)
  at host.exp.exponent.experience.a.onCreate (BaseExperienceActivity.java:83)
  at host.exp.exponent.experience.ExperienceActivity.onCreate (ExperienceActivity.java:160)
  at host.exp.exponent.experience.ShellAppActivity.onCreate (ShellAppActivity.java:23)
  at android.app.Activity.performCreate (Activity.java:6948)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1126)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2924)

崩溃发生在启动时。
事故发生在 13 次Samsung Galaxy Tab S2 8.0 (gts28lte), Android 7.0

基本信息:

什么可能导致此崩溃?

如果我可以提供任何其他信息,请告诉我!

Update-2019-02-06:
React Native 的 start Activity onCreate 方法:

小路:./node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/ReactActivity.java

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    mDelegate.onCreate(savedInstanceState);
  }

标签: androidreact-nativeexporuntimeexception

解决方案


推荐阅读