React-native运行坑

2018-04-23  本文已影响0人  江南_烟雨
  1. Metro Bundler can't listen on port 8081

解决办法:开启了多个服务,全部关掉,在项目路径下,重新start

2.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/getting-started.html

解决办法:
1.android,项目运行环境改变,符合android原生开发时的情况。

一切ok

上一篇 下一篇

猜你喜欢

热点阅读