问题:

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),把里面路径改为自己的