报错如下:

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
解决方案:
若一切环境都配置好,且android手机设备已连接,那么可以尝试以下来确保权限是否足够
在项目的终端中添加以下命令:
chmod 755 android/gradlew
即可,亲测可行。

本文介绍了当遇到ReactNative应用无法在Android设备上安装的问题时的解决方案。主要原因是权限不足导致的安装失败,通过修改Gradle文件的权限,即运行`chmod 755 android/gradlew`命令来解决该问题。
721

被折叠的 条评论
为什么被折叠?



