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

前端 未结 8 1557
[愿得一人]
[愿得一人] 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:28

    I followed the React Native Getting Started instructions and my ANDROID_HOME and PATH was right but I was still getting this error.

    The solution was to install "Android 6.0 (Marshmallow)" from this screen (without clicking "Show Package Details"):

提交回复
热议问题