No version of NDK matched the requested version

后端 未结 11 1958
醉梦人生
醉梦人生 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条回答
  •  北海茫月
    2020-12-04 12:34

    I faced the same problem. Then i found the developer references here

    So, the problem start with gradle version 3.6. Before 3.6 there was no default ndk specified. So, any version of ndk worked without any problem. But after adding default version, if we not add any ndkVersion in build.gradle then it search for the default version of ndk.

    In my case, my gradle version was 3.6.3 and ndk installed 21.0.6113669 and i did not defined ndkVersion in my build.gradle. So, it search for default ndkVersion "20.0.5594570" according to my gradle version and gave me the same error. So, i simply add ndkVersion "21.0.6113669" in my build.gradle file and error gone.

提交回复
热议问题