運(yùn)行react-native run-android 報(bào)錯(cuò):
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
錯(cuò)誤原因:
android/gradlew 沒有執(zhí)行權(quán)限
解決辦法:
給gradlew 添加可執(zhí)行權(quán)限
chmod +x android/gradlew
再次運(yùn)行react-native run-android 可以正常安裝程序