android开发 [CXX1104] NDK from ndk.dir at C:/Java/androidSdk/ndk/21.1.6352462 had version [21.1.6352462] which disagrees with android.ndkVersion [21.0.6113669]
-
问题描述
[CXX1104] NDK from ndk.dir at C:/Java/androidSdk/ndk/21.1.6352462 had version [21.1.6352462] which disagrees with android.ndkVersion [21.0.6113669]
-
问题原因
build.gradle使用指定的ndkVersion版本为21.0.6113669 android { ndkVersion "21.0.6113669" ... } local.properties里配置ndk版本为21.1.6352462 ndk.dir=C/://Java//androidSdk//ndk//21.1.6352462 sdk.dir=C/://Java//androidSdk 导致ndk配置和使用的版本不一致
-
解决方法
Android studio -> SDK manager ->Android SDK ->SDK Tools下载对应版本ndk
修改build.gradle配置的ndkVersion和local.properties里配置的ndk版本一致即可
原创文章,作者:wdmbts,如若转载,请注明出处:https://blog.ytso.com/272586.html