No version of NDK matched the requested version

后端 未结 11 1968
醉梦人生
醉梦人生 2020-12-04 11:55

After updating to Android Gradle plugin 3.6.0 (released Feb 24, 2020), several project independently started failing with:

No v         


        
11条回答
  •  萌比男神i
    2020-12-04 12:27

    In order to solve this problem, you must indicate to your IDE the version of your NDK in build.gradle. In this case, it should be version 21.0.6113669. For example:

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.remed_mobile"
        minSdkVersion 16
        targetSdkVersion 28
        ndkVersion '21.1.6352462'
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }
    

    If you do not indicate your version number, then the IDE takes a default version. If you've upgraded gradle, then it might not find the right version.

提交回复
热议问题