yarn android报错 未找到sdk (SDK location not found. Define location with an ANDROID_SDK_ROOT)

报错内容:

  • What went wrong:
  • Could not determine the dependencies of task ‘:app:installDebug’. > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project’s local properties file at ‘C:\Users\12779\learning\react_native_app\AwesomeProject\android\local.properties’.

解决方法:
ANDROID_HOME 环境变量名改成 ANDROID_SDK_ROOT即可
yarn android报错 未找到sdk (SDK location not found. Define location with an ANDROID_SDK_ROOT)
yarn android报错 未找到sdk (SDK location not found. Define location with an ANDROID_SDK_ROOT)