我认为这是一个错误,因为在新的更新之前我没有任何问题.所以我不能使用gradle控制台调试我的应用程序,因为我有这个警告 -

"按需配置是一个孵化功能.NDK缺少"平台"目录.如果您使用NDK,请验证ndk.dir是否设置为有效的NDK目录.它当前设置为C:\ Users\Emily Thacker\AppData\Local\Android\Sdk \ndk-bundle.如果您没有使用NDK,请取消设置ANDROID_NDK_HOME或local.properties中的NDK变量以删除此警告."

我很确定我没有使用NDK,我不知道如何解决这个问题,这是我的local.properties

## This file is automatically generated by Android Studio.

# Do not modify this file -- YOUR CHANGES WILL BE ERASED!

#

# This file should *NOT* be checked into Version Control Systems,

# as it contains information specific to your local configuration.

#

# Location of the SDK. This is only used by Gradle.

# For customization when using a Version Control System, please read the

# header note.

sdk.dir=C\:\\Users\\Emily Thacker\\AppData\\Local\\Android\\Sdk

另外,我在目录中看不到ANDROID_NDK_HOME文件.

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐