在terminal 中输入 gradlew -i 查看详细信息 输出信息:
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 is missing a "platforms" directory.提示platforms不存在 重新在自己本地
C:\Users\Administrator\AppData\Local\Android\Sdk\ndk-bundle的文件夹内创建platforms文件夹
重新打开AndroidStudio 编译成功