react-native 启动服务器时候报错Could not install the app on the device, read the error above for details.

来源:互联网 发布:untitled软件汉化版 编辑:程序博客网 时间:2024/04/30 21:51

Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:

https://facebook.github.io/react-native/docs/android-setup.html


java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException: TypeError: undefined is not a function (evaluating 'remoteModules.forEach') (http://192.168.0.114:8081/index.android.bundle?platform=android&dev=true&hot=false&minify=false:7385)
                                                                 at com.facebook.react.ReactInstanceManagerImpl.createReactContext(ReactInstanceManagerImpl.java:860)
                                                                 at com.facebook.react.ReactInstanceManagerImpl.access$700(ReactInstanceManagerImpl.java:98)
                                                                 at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(ReactInstanceManagerImpl.java:194)
                                                                 at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(ReactInstanceManagerImpl.java:177)
                                                                 at android.os.AsyncTask$2.call(AsyncTask.java:295)


这个是因为react-native版本升级了,但是在项目的build.gradle没有改成升级的版本号。



0 2
原创粉丝点击