Location specified by ndk.dir (D:\android\2_NDK\android-ndk-r16b) did not contain a valid NDK and and couldn't be used

作者: android 发布时间: 2020-01-08 浏览: 1707 次 编辑

导入别人的项目报这个问题:Location specified by ndk.dir (D:\android\2_NDK\android-ndk-r16b) did not contain a valid NDK and and couldn't be used

解决方案: ndk目录 更改成自己的,或者去掉

根目录 local.propertyies

## This file must *NOT* be checked into Version Control Systems,
# as it contains information specific to your local configuration.
#
# Location of the SDK. This is only used by Gradle.
# For customization when using a Version Control System, please read the
# header note.
#Wed Jan 08 10:58:05 CST 2020
ndk.dir=/Users/zhuxiaocheng/Library/Android/sdk/ndk-bundle  #更改成自己的,或者去掉
sdk.dir=/Users/zhuxiaocheng/Library/Android/sdk