NDK is missing a "platforms" directory.unset the NDK variable from ANDROID_NDK_HOME or local.propert

NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to D:\ProgramFile\Android
\androidsdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

错误原因:

没有配置NDK环境变量;

解决方案:

在环境变量中添加名ANDROID_NDK_HOME的变量,值为NDK路径

"我的电脑"右键“属性”->高级系统设置->环境变量 -> 新建ANDROID_NDK_HOME

dos输入ndk-build测试配置是否成功:

猜你喜欢

转载自blog.csdn.net/niuba123456/article/details/81845000
ndk