在react-nactive项目中运行时,报错
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
在react-nactive项目中运行时,报错error Failed to install the app

原因,可能是Android 模拟器的Android SDK 的版本和自己下载的版本不一致,导致的。
这个是模拟器,可能与这个27有关,刚接触,通过修改一致就成功了。
在react-nactive项目中运行时,报错error Failed to install the app
这个是sdk的版本,可以下载多个,模拟器的版本应该与sdk版本一致。
在react-nactive项目中运行时,报错error Failed to install the app
如果自己遇到的这个问题还不能解决,就需要检查一下自己android sdk的配置有没有问题,可以通过android -h 来检测自己配置是否成功。如果配置成功,可能遇到的就是版本不一致的问题。

相关文章:

  • 2022-12-23
  • 2021-06-26
  • 2022-01-03
  • 2021-05-24
  • 2021-04-30
  • 2021-06-27
  • 2021-05-30
  • 2021-07-04
猜你喜欢
  • 2021-12-24
  • 2021-08-12
  • 2022-12-23
  • 2021-06-27
  • 2021-07-05
  • 2021-12-29
  • 2021-09-29
相关资源
相似解决方案