ax$ react-native run-android
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.htmljax$ adb devices
List of devices attached
192.168.56.101:5555 device
解決方案:
可能是android/gradlew
的權(quán)限不夠颜启。第一步,在RN項(xiàng)目目錄下執(zhí)行chmod 755 android/gradlew
浪讳,再執(zhí)行react-native run-android
試試缰盏,應(yīng)該沒問題了。