[摘]NDK错误记录:NDK is missing a platforms directory.

摘抄10个月前发布 125la.com@站长
346 0 0
125啦读书导航,我的单页导航

前言

导入NDK工程时,出现:

NDK is missing a "platforms" directory

记录一下,方便自己后续查阅。

正文

导入NDK工程的完整日志:

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 /Users/daijun/Library/Android/sdk/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工程的local.properties文件中添加

ndk.dir=C\:\\Users\\water\\AppData\\Local\\Android\\Sdk\\ndk\\21.1.6352462

上面是Android studio中下载的NDK 21.1.6352462。

你可以替换成自己存放NDK的版本路径。

参考文章

  1. NDK错误记录-NDK is missing a “platforms” directory.

© 版权声明
125啦读书导航,我的单页导航

相关文章

125啦读书导航,我的单页导航

暂无评论

暂无评论...