您的位置:首页 > 移动开发

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

2016-10-13 16:24 1496 查看
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没有改成升级的版本号。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐