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
添加之后再次运行即可

相关文章: