https://niubashaoye.blog.csdn.net/article/details/81845000
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测试配置是否成功:
————————————————
版权声明:本文为CSDN博主「牛八少爷」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/niuba123456/article/details/81845000