原文网址:https://www.jianshu.com/p/a90f33c960ac

问题:

RN-bug-Android运行时,报错 Could not install the app on the device, read the error above for details. Make sure you have an Android 模拟器

解决:

  1. 环境变量PATH
  2. 配置权限 如果配置环境后不可以运行 可能是无权限运行,在项目下运行 就是为android文件夹下的gradlew命令添加权限, **在根目录下执行 chmod 755 android/gradlew,本次就是用这个方法解决 **
  3. 如果是从github 上clone下来的项目 看看是否有此文件( /android/local.properties),把里面路径改为自己的
参考摘要:

https://blog.csdn.net/qq_30613075/article/details/78878717

相关文章:

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