Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android调用switchVersion或switchVersionLater重启后崩溃 #290

Closed
zd1471278687 opened this issue Oct 28, 2019 · 5 comments
Closed

Android调用switchVersion或switchVersionLater重启后崩溃 #290

zd1471278687 opened this issue Oct 28, 2019 · 5 comments

Comments

@zd1471278687
Copy link

WechatIMG2
报错信息如图
环境:
使用版本5.2.8
react-native版本0.59.9

@sunnylqm
Copy link
Contributor

只能在release版本中测试热更新

@zd1471278687
Copy link
Author

只能在release版本中测试热更新

release版本也会崩溃,这是在debug版本中抓到的报错信息

@sunnylqm
Copy link
Contributor

sunnylqm commented Oct 29, 2019 via email

@zd1471278687
Copy link
Author

debug版本的报错没有参考意义,请给出release版本的logcat报错

---原始邮件--- 发件人: "davidzhang"<notifications@github.com> 发送时间: 2019年10月29日(星期二) 上午9:40 收件人: "reactnativecn/react-native-pushy"<react-native-pushy@noreply.github.com>; 抄送: "Sunny Luo"<sunnylqm@qq.com>;"Comment"<comment@noreply.github.com>; 主题: Re: [reactnativecn/react-native-pushy] Android调用switchVersion或switchVersionLater重启后崩溃 (#290) 只能在release版本中测试热更新 release版本也会崩溃,这是在debug版本中抓到的报错信息 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

2019-10-29 13:45:04.518 12282-12317/? E/AndroidRuntime: FATAL EXCEPTION: mqt_js
com.facebook.jni.CppException: getPropertyAsObject: property '__fbRequireBatchedBridge' is not an Object

no stack
    at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
    at android.os.Handler.handleCallback(Handler.java:789)
    at android.os.Handler.dispatchMessage(Handler.java:98)
    at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
    at android.os.Looper.loop(Looper.java:164)
    at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
    at java.lang.Thread.run(Thread.java:764)

@sunnylqm
Copy link
Contributor

看官方issue可能跟升级后的缓存有关,清掉缓存重新打包试试
facebook/react-native#25455 (comment)

@sunnylqm sunnylqm closed this as completed Nov 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants