【转】RN报错 Could not install the app on the device, read the error above for details. Make sure you hav...

原文网址: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

原文地址:https://www.cnblogs.com/wi100sh/p/12107102.html