NDK环境变量配置
android studio更新到3.6,构建NDK项目的时候NDK版本引起的同步报错
No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.1.635
方法1(Android Studio环境)
您只需在“项目结构”对话框中选择本地安装的NDK
You can open the Project Structure Dialog by clicking File > Project Structure… or by pressing the hotkeys CTRL + ALT + SHIFT + S (on windows)
Once the Project Structure Dialog is open, go to SDK Location and select your locally installed version of NDK under Android NDK Location. Typically this is installed somewhere in your user folder then \AppData\Local\Android\Sdk\ndk%ndk version% at least for Windows.
Project Structure dialog screenshot - from Android Studio 3.6 Build #AI-192.7142.36.36.6200805, built on February 12, 2020