React Native Release APK崩溃启动(Debug工作正常)

时间:2018-01-17 22:19:38

标签: react-native react-native-android

我的Android本机反应原本适用于调试版本,但在构建签名版本后使用:cd android&& ./gradlew assembleRelease然后它总是在启动时崩溃。 APK的文件大小看起来非常类似于调试版(不是很大的区别)。这是logcat的错误。 (我已经检查了发布问题上的其他stackoverflow问题,但找不到解决方案。我也试过'gradle clean'构建)。

React-native version 0.44

01-17 14:08:13.694 E/UncaughtException: java.lang.RuntimeException: Error calling AppRegistry.runApplication
                                        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
                                        at android.os.Handler.handleCallback(Handler.java:751)
                                        at android.os.Handler.dispatchMessage(Handler.java:95)
                                        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
                                        at android.os.Looper.loop(Looper.java:154)
                                        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208)
                                        at java.lang.Thread.run(Thread.java:762)
                                     Caused by: com.facebook.jni.CppException: Could not get BatchedBridge, make sure your bundle is packaged correctly
                                        at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) 
                                        at android.os.Handler.handleCallback(Handler.java:751) 
                                        at android.os.Handler.dispatchMessage(Handler.java:95) 
                                        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31) 
                                        at android.os.Looper.loop(Looper.java:154) 
                                        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208) 
                                        at java.lang.Thread.run(Thread.java:762) 
01-17 14:08:13.922 E/AndroidRuntime: FATAL EXCEPTION: mqt_js
                                 Process: com.challengesolutions.lifeapp, PID: 9250
                                 java.lang.RuntimeException: Error calling AppRegistry.runApplication
                                     at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method)
                                     at android.os.Handler.handleCallback(Handler.java:751)
                                     at android.os.Handler.dispatchMessage(Handler.java:95)
                                     at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31)
                                     at android.os.Looper.loop(Looper.java:154)
                                     at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208)
                                     at java.lang.Thread.run(Thread.java:762)
                                  Caused by: com.facebook.jni.CppException: Could not get BatchedBridge, make sure your bundle is packaged correctly
                                     at com.facebook.react.bridge.queue.NativeRunnable.run(Native Method) 
                                     at android.os.Handler.handleCallback(Handler.java:751) 
                                     at android.os.Handler.dispatchMessage(Handler.java:95) 
                                     at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:31) 
                                     at android.os.Looper.loop(Looper.java:154) 
                                     at com.facebook.react.bridge.queue.MessageQueueThreadImpl$3.run(MessageQueueThreadImpl.java:208) 
                                     at java.lang.Thread.run(Thread.java:762) 

感谢您的帮助!

0 个答案:

没有答案