I just update my Android Studio after a long time. There are three options and Kotlin DSL with recommended quote.
I always code in Java only. So any changes come if I select in Kotlin. Because I never use Kotlin, and their first Activity class come with Kotlin.
I do not know Groovy/Kotlin language. In future, I want to add any SDK all of their documentations will be in maybe Groovy, then I will face difficulty to add that in Kotlin DSL or not?
2
Answers
It is a choice related to
build.gradle
management.What is DSL
Kotlin DSL
You use kotlin dsl in build gradle management. It is equivalent to using Kotlin programming language.
Groovy DSL
You use groovy dsl in build gradle management. It is equivalent to using Groovy programming language.
Kotlin DSL: You write your gradle build files in a kotlin dsl and therefore you can use kotlin: see this primer
Kotlin DSL + Version Catalogs: You still write your gradle build files in kotlin dsl, but the dependency versions are kept in a version catalog file. This helps to share version codes, see this site
Groovy DSL: The "old" way of writing gradle build files, here the dsl is written in groovy and you can write groovy code.
To answer your question, you can choose any of them and you can add any dependency, no matter what they are using.
The gradle documentation also provides the option to see sample code in either kotlin or groovy: