pushy集成的热更新后,重启崩溃。



  • E/AndroidRuntime( 4966): java.lang.RuntimeException: com.facebook.react.devsupport.JSException: getPropertyAsObject: property '__fbRequireBatchedBridge' is not an Object
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.DefaultNativeModuleCallExceptionHandler.handleException(DefaultNativeModuleCallExceptionHandler.java:22)
    E/AndroidRuntime( 4966): at com.facebook.react.devsupport.DisabledDevSupportManager.handleException(DisabledDevSupportManager.java:170)
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.CatalystInstanceImpl.onNativeException(CatalystInstanceImpl.java:547)
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.CatalystInstanceImpl.access$1000(CatalystInstanceImpl.java:44)
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.CatalystInstanceImpl$NativeExceptionHandler.handleException(CatalystInstanceImpl.java:563)
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
    E/AndroidRuntime( 4966): at android.os.Looper.loop(Looper.java:135)
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:192)
    E/AndroidRuntime( 4966): at java.lang.Thread.run(Thread.java:818)
    E/AndroidRuntime( 4966): Caused by: com.facebook.react.devsupport.JSException: getPropertyAsObject: property '__fbRequireBatchedBridge' is not an Object
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
    E/AndroidRuntime( 4966): at android.os.Handler.handleCallback(Handler.java:739)
    E/AndroidRuntime( 4966): at android.os.Handler.dispatchMessage(Handler.java:95)
    E/AndroidRuntime( 4966): at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
    E/AndroidRuntime( 4966): ... 3 more
    E/AndroidRuntime( 4966): Caused by: com.facebook.jni.CppException: getPropertyAsObject: property '__fbRequireBatchedBridge' is not an Object
    E/AndroidRuntime( 4966):
    E/AndroidRuntime( 4966): no stack
    E/AndroidRuntime( 4966): ... 7 more
    W/ActivityManager( 1014): Force finishing activity 1 com.demo/.MainActivity



  • 请详细描述各种版本,操作步骤,相关代码



  • 在0.0.59版本的React Native中,使用pushy的热更新服务。
    安装官方github的文档进行操作:

    1. 创建更新包,上传到pushy。
    2. app端下载完成更新包后,重新启动,则报上述的崩溃错误。


  • 解决了没有了,,,