Android 项目 Gradle 编译DNK不匹配问题

错误提示信息

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:stripReleaseDebugSymbols'.
> No version of NDK matched the requested version 20.0.5594570. Versions available locally: 21.3.6528147

解决方式

# 在local.properties中添加ndk 路径
cat local.properties
...
sdk.dir=/Users/qa/tools/android-sdk-mac_x86
ndk.dir=/Users/qa/tools/android-ndk-r20b
...

NDK 历史版本下载链接:https://developer.android.google.cn/ndk/downloads/older_releases

posted @ 2021-07-15 11:36  Star-Hitian  阅读(392)  评论(0编辑  收藏  举报