在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更新啦~