Gradle KTS构建文件

May*_*tel 15 android android-studio gradle-kotlin-dsl

Google发布了更新版本的Android Studio 3.5。更新到此版本后,我在下面收到此警告:

This project uses Gradle KTS build files which are not fully supported. 
Some functions may be affected.
Run Code Online (Sandbox Code Playgroud)

但是,我相信此警告仅限于使用Gradle的Kotlin DSL管理其依赖项的开发人员。而不是使用常规脚本

May*_*tel 0

现在 android studio 4.0 正式支持 Kotlin DSL 脚本文件(*.kts),因此您需要更新它并看到警告从事件日志中删除。

您可以查看下面的图片并从中阅读官方文档

删除警告