【发布时间】:2017-10-23 23:56:09
【问题描述】:
我正在尝试在 mac 上运行 react native,我在后台运行 android 模拟器并运行 react-native run-android 并得到:
=> react-native run-android
Scanning 564 folders for symlinks in /Users/sao/Conv/Conv2/node_modules (19ms)
Starting JS server...
Building and installing the app on the device (cd android && ./gradlew installDebug)...
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
React Awesome 项目 (react-native init) 在这台机器上运行良好,而且这个项目在 Windows 上运行良好。
上面说检查错误以获取详细信息,但上面没有错误...
关于如何使它工作的任何想法?
【问题讨论】:
-
如果你仍然坚持,请检查我的回答,如果这能解决问题,请告诉我。
-
你的 MAC 上安装 JDK 了吗?
-
是的,react Awesome 项目有效。 @EnieJakiro
-
好的,可能是安装出错了。重新启动系统后尝试从头开始响应本机 init
-
您的意思是将我的项目添加到 react awesome 项目中? @EnieJakiro
标签: android macos reactjs react-native