React Native新建项目运行

react native run-android

提示

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

React Native 新建项目运行出错 sdk.dir in the local.properties file or with an ANDROID_HOME environment
很明显是新建的安卓项目没有找到本机的安卓SDK,我们只需要在android目录下增加local.properties文件
React Native 新建项目运行出错 sdk.dir in the local.properties file or with an ANDROID_HOME environment
添加之后再次运行即可

相关文章:

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