Gradle KTS 构建文件

Gradle KTS Build Files

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

This project uses Gradle KTS build files which are not fully supported. 
Some functions may be affected.

但是,我认为此警告仅限于使用 Gradle 的 Kotlin DSL 来管理其依赖项的开发人员。而不是使用 groovy 脚本。

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

你可以查看下图并阅读官方的Document