Android Studio升级到3.6后 Native项目报错如下:
No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.0.6113669
Install NDK '20.0.5594570' and sync project
解决方案
- 在local.properties下面添加,指定ndk
ndk.dir=D\:\\zero\\android\\android-ndk-r20b
-
或者在sdk下现在对应的ndk,这样子就不需要指定ndk