NDK配置问题:NDKdoesnotcontainanyplatforms.
在Android Studio当中⽤SDK Manager下载了NDK之后,要配置NDK路径,不能Apply,弹出提⽰: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 lect 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 yourlf, like so:
ndk.dir=/Urs/[urname]/Library/Android/sdk/ndk/22.0.7026061
sdk.dir=/Urs/[urname]/Library/Android/sdk
只能静候Android Studio更新啦~