混合开发,跳转到RNPageActivity出现以下问题

来源:16-7 React Native 混合开发实战(Android篇)-5【解锁新的开发方式】

哇哦88888888

2019-08-14

java.lang.AssertionError: Activity needs to be set if initial lifecycle state is resumed
at com.facebook.infer.annotation.Assertions.assertNotNull(Assertions.java:35)
at com.facebook.react.ReactInstanceManagerBuilder.build(ReactInstanceManagerBuilder.java:252)
at com.xp.rsandroid.RNPageActivity.onResume(RNPageActivity.java:41)
at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
at android.app.Activity.performResume(Activity.java:6898)
at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3497)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3560)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2816)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThreadH.handleMessage(ActivityThread.java:1549)atandroid.os.Handler.dispatchMessage(Handler.java:102)atandroid.os.Looper.loop(Looper.java:163)atandroid.app.ActivityThread.main(ActivityThread.java:6374)atjava.lang.reflect.Method.invoke(NativeMethod)atcom.android.internal.os.ZygoteInitH.handleMessage(ActivityThread.java:1549) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:163) at android.app.ActivityThread.main(ActivityThread.java:6374) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInitH.handleMessage(ActivityThread.java:1549)atandroid.os.Handler.dispatchMessage(Handler.java:102)atandroid.os.Looper.loop(Looper.java:163)atandroid.app.ActivityThread.main(ActivityThread.java:6374)atjava.lang.reflect.Method.invoke(NativeMethod)atcom.android.internal.os.ZygoteInitMethodAndArgsCaller.run(ZygoteInit.java:931)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:821)

写回答

1回答

哇哦88888888

提问者

2019-08-14

已处理

0
1
_ying_
请问下是怎么处理的哦?我的也是这个错误
2019-08-23
共1条回复

RN入门到进阶,打造高质量上线App

解锁React Native开发应用新姿势,React Native新版本热门技术

3144 学习 · 3241 问题

查看课程