Questions tagged [gradle-kotlin-dsl]

Kotlin language support for Gradle build scripts.

Gradle build scripts have historically been written in Groovy. The Gradle Kotlin DSL project was created to create statically typed, clear, concise,and descriptive build scripts with awesome IDE support.

Build scripts are written in the Kotlin programming language, but using a Kotlin DSL (domain specific language) designed specifically to support building software.

Questions that belong here:

  • What causes a specific build script error?
  • How to convert a specific construct of a Groovy build script to its Kotlin equivalent?
  • How to achieve a specific processing task in your Kotlin build script?

Do not use this tag for general gradle questions.

Note: Before version 0.10.1 the "Gradle Kotlin DSL" project was called "Gradle Script Kotlin".

1145 questions
-1
votes
2 answers

Query related with kotlin class

class student1(firstName : String, lastName : String){ var id : Int = -1 val firstName = firstName val lastName = lastName init { println("initialized") } constructor(firstName : String, lastName : String, extraParam…
-1
votes
1 answer

How convert custom Groovy task to custom Kotlin task?

Android Studio 3.5 In app/build.gradle : buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' configBuildType(delegate,…
Alexei
  • 14,350
  • 37
  • 121
  • 240
-1
votes
1 answer

Android studio new activity template add same dependencies already defined in gradle file when use Kotlin DSL?

When I use new empty activity template android studio it auto adds two line dependencies in my app build.gradle.kts and resync the project. implementation(Config.Libs.appCompat) implementation(Config.Libs.constraintLayout) implementation…
ltvu93
  • 91
  • 1
  • 12
-3
votes
2 answers

Unable to create debug or signed apk

Can anyone guide me through this issue as I am unable to create apk through Android Studio? Please.... ERROR: Program type already present: kotlin.StandardKt__SynchronizedKt > Task :app:multiDexListDebug FAILED Task :app:multiDexListDebug in app…
PHP Ninja
  • 1,055
  • 2
  • 9
  • 28
-4
votes
1 answer

Problems with using open source(cannot resolve com~~)

masters. I've just started developing an Android(kotlin). I tried to use open source for my project, but there is an error. What am I supposed to do here? (I referred to "https://androidexample365.com/customizable-timetableview-for-android/") my…
1 2 3
76
77