前言

手贱升级mac系统, 然后就报标题错误, 然后virtualBox 失效,重新安装后,导致genymotion 打开 react-native run-android 报上面错误,
RN开发(四:Could not install the app on the device, read the error above for details. Make sure you ...)

一开始以为环境变量问题,去其他rn项目 没这问题,

然后以为genymotion 问题,确定下sdk位置,发现也是正常。RN开发(四:Could not install the app on the device, read the error above for details. Make sure you ...)

但是其他项目也正常,master切到develop 正常运行,我凌乱了!!

然后,我手贱去能跑的分支,将master合并过来,发现项目文件未更改的情况下,居然出现依旧问题,隐隐约约感觉是系统权限问题。

so,在项目根文件下运行 就是为android文件夹下的gradlew命令 添加权限

chmod 755 android/gradlew

最后记得检查下/android/local.properties,改为自己sdk位置
RN开发(四:Could not install the app on the device, read the error above for details. Make sure you ...)

相关文章:

  • 2021-10-19
  • 2022-12-23
  • 2021-07-18
  • 2021-10-30
  • 2021-12-25
  • 2022-01-02
猜你喜欢
  • 2021-06-25
  • 2021-09-16
  • 2022-12-23
  • 2021-12-06
  • 2022-01-06
  • 2021-09-26
  • 2021-12-02
相关资源
相似解决方案