我试图在mac上运行本机响应,在后台运行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超棒项目(react-native init
)在这台机器上工作得很好,这个项目在windows上运行得很好。
上面有检查错误的细节,但上面没有错误.
有什么办法让它起作用吗?
发布于 2017-06-06 11:28:32
尝试在终端中运行adb devices
,如果其空白运行adb kill-server
,则使用adb start-server
跟踪它。
发布于 2017-05-31 12:56:59
同样的问题,最后在mac上重新创建了该项目,并从旧项目中添加了文件;
我的项目使用git,因此我可以告诉您,在我重新创建该项目时唯一更改的文件是:
我想您可以创建一个新项目并复制粘贴这些文件,但我不确定它是否会工作,因为我没有尝试过。
https://stackoverflow.com/questions/44144816
复制相似问题