混合开发,跳转到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
已处理
012019-08-23
相似问题