NDK配置问题:NDK does not contain any platforms.

在Android Studio当中用SDK Manager下载了NDK之后,要配置NDK路径,不能Apply,弹出提示:NDK does not contain any platforms.

在Stack Overflow找到解决办法:https://stackoverflow.com/questions/56228822/ndk-does-not-contain-any-platforms

The Android NDK's platform directory has been obsolete since r19. The NDK team removed it altogether in r21. This was a recent change and the stable version of the Android Studio IDE (at least on Mac) is still looking for the platform directory when you select an r21 or higher version and try to Apply it. The IDE gives the error "NDK does not contain any platforms."

Until Android Studio is updated, a fix is to edit the local.properties file yourself, like so:

ndk.dir=/Users/[username]/Library/Android/sdk/ndk/22.0.7026061

sdk.dir=/Users/[username]/Library/Android/sdk

只能静候Android Studio更新啦~

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容