React Native : target with hash string 'android-X' not found

前端 未结 8 1560
[愿得一人]
[愿得一人] 2021-02-01 14:56

I am trying to develop my first react-native Android app. When I run

sudo react-native run-android

I get the following error

8条回答
  •  一向
    一向 (楼主)
    2021-02-01 15:07

    You need to point ANDROID_HOME to the parent directory of platforms and platform-tools so /usr/local/Cellar/android-sdk

提交回复
热议问题