android - 使用 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
。
基本信息:
- 该应用程序是使用Expo的 SDK 31构建的
- 该 apk 是使用生成的
expo build:android --release-channel prod
什么可能导致此崩溃?
如果我可以提供任何其他信息,请告诉我!
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);
}
解决方案
推荐阅读
- python - 有没有办法在 Spyder 中释放已使用的内存?
- javascript - 如何让 Python 在打开的 chrome 选项卡上运行 JavaScript?
- r - 将网站表转换为数据框的 R 函数
- symfony - 自定义规范器未通过名称转换器服务
- javascript - 求最小公倍数
- c# - 如何动态地将对象类型传递给<>?
- bokeh - 具有不同工具提示的多个散景图
- python - 有没有办法用我的代码找到这些href,而无需找到与我的if语句匹配的所有href?
- angular - 如何从输入定义管道?
- python - 如何在路由函数中为 Flask app.config 提供参数?