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

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

    What I did was to change the target my application was compiled against. To do this edit the file android/app/build.gradle on your project and modify the following:

    compileSdkVersion 24
    buildToolsVersion "24.0.2"
    

    This should match whatever you have installed without requiring to download another API version.

提交回复
热议问题