gradle-kotlin-dsl Questions

15

Solved

I get the following warning when I want to use @AndroidEntryPoint which is a property of hilt in my project. Expected @AndroidEntryPoint to have a value. Did you forget to apply the Gradle Plugin?...
Preferment asked 9/10, 2021 at 23:47

2

Solved

In build.gradle.kts file, I include this code on the top line. Then I use KotlinCompilerVesion.VERSION below. import org.jetbrains.kotlin.config.KotlinCompilerVersion Some code works fine, but ...
Externalize asked 10/4, 2019 at 18:58

12

In these days, I am trying to write some codes to experience the Spring reactive features and kotlin extension in Spring 5, and I also prepared a gradle Kotlin DSL build.gradle.kt to configure the ...
Alliteration asked 18/8, 2017 at 9:53

4

My app uses several gradle.kts scripts. I want to set one variable which would be global for everyone. object Versions{ val kotlin_version = "1.3.60-eap-25" } but it is not resolved: classpat...
Younger asked 8/12, 2019 at 8:27

4

Solved

I am trying to build my project but every time I get the following errors: Error 1 java.lang.NoSuchMethodError: 'kotlin.sequences.Sequence com.google.devtools.ksp.processing.Resolver.getPackagesWit...
Hexamerous asked 23/10, 2023 at 5:47

3

Solved

I'm trying to add a new module (library module) to my project but in build.gradle.kts (for library module) I have this error: org.gradle.internal.exceptions.LocationAwareException: Build file ' ......
Gregoriogregorius asked 2/6, 2021 at 10:35

2

Solved

How can I apply the Google Services plugin to the bottom of my app module build.gradle.kts file? Doing it using the plugins {} block at the top of the file gives a warning and using the same bloc...
Doctrinal asked 14/3, 2019 at 15:53

3

Having both Gradle plugins gave me that error: build.gradle.kts plugins { id("kotlin") kotlin("android") } just either one is fine Why? Are they same thing? I know kotlin("android") is act...
Gambrell asked 20/1, 2020 at 8:44

3

Solved

To reuse code in gradle files I usually have a "base" gradle file for certain modules and just apply them and add whatever new dependencies it might need. I'm in the progress of converting all my g...
Enamel asked 4/12, 2018 at 2:16

5

As titled, I'd like to know how to modify the gradle.build.kts in order to have a task to create a unique jar with all the dependencies (kotlin lib included) inside. I found this sample in Groovy:...

4

The red notification bar at the top says: /org/gradle/tooling/BuildException (java.lang.NoClassDefFoundError: /org/gradle/tooling/BuildException. I can run a gradle refresh successfully, I can run ...
Infinitesimal asked 8/2, 2022 at 13:27

3

Solved

I am using Android Studio Giraffe. In that new recommended way is to use Koltin build instead of groovy. So, when I created the new project, I got both Module and Project level build.gradle.kts fil...
Blanche asked 5/4, 2023 at 16:56

12

Solved

I upgraded my project to Android Studio Arctic Fox, so I have to upgrade gradle to 7.0.2 and gradle build tool to 7.0.0-beta04. After synchronizing, I got this warning message in Sync tab: org.grad...

6

Solved

I want to retreive key from local.properties file that looks like : sdk.dir=C\:\\Users\\i30mb1\\AppData\\Local\\Android\\Sdk key="xxx" and save this value in my BuildConfig.java via grad...
Featurelength asked 1/3, 2020 at 10:9

2

I'm a Android developer. As result I use Gradle for build android projects. I write (about 2 years) gradle scripts on Groovy. As result scripts is very compact, clear and easy to support. It is ver...
Wordbook asked 26/7, 2017 at 19:29

2

Solved

How does this look it kotlin DSL: dependencies { // Import the BoM for the Firebase platform implementation platform('com.google.firebase:firebase-bom:26.2.0') } The above is the current recomme...
Perineum asked 4/1, 2021 at 15:0

4

Solved

In jetpack datastore, you have to set the gradle plugin task for generating class out of .proto files: // build.gradle protobuf { protoc { artifact = "com.google.protobuf:protoc:3.10.0"...
Cassiterite asked 12/11, 2020 at 20:5

9

Solved

In tweaking my buildfile, I seem to have encountered a bug with mainClassName: thufir@dur:~/NetBeansProjects/HelloSeleniumWorld$ thufir@dur:~/NetBeansProjects/HelloSeleniumWorld$ ./gradlew clean ...
Zest asked 19/12, 2018 at 14:37

5

Kotlin project success build by build.gradle: compileKotlin { kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8 } compileTestKotlin { kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8 } Nice. ...
Antemundane asked 1/4, 2019 at 13:20

3

Solved

I'm using Gradle Kotlin DSL. I want to know whether it's possible to read Gradle properties in the settings.gradle.kts file? I have gradle.properties file like this: nexus_username=something nexus_...
Debtor asked 11/1, 2022 at 2:59

2

Solved

when migrating to gradle 7.x getting below error * What went wrong: An exception occurred applying plugin request [id: 'no.nils.wsdl2java', version: '0.12'] > Failed to apply plugin 'no.nils.ws...
Cryptozoite asked 9/11, 2021 at 17:3

3

Solved

I am following this guide. The guide reads: Extra properties on a project are visible from its subprojects. This does not seem to work for me, as the following does not work: In build.gradle.kts I ...
Pedestrian asked 17/7, 2020 at 17:40

2

Solved

I'm trying to switch to using Kotlin DSL to get dependencies versions from an object Kotlin file instead of gradle files. When I do a gradle sync it is unable to resolve reference, but I'm able to ...

2

I used this code in my module build script to set id release build is debbugable or not, but now isDebbugable is not working (Unresolved reference). getByName("release") { isMinifyEnable...
Besotted asked 6/8, 2021 at 9:39

2

Solved

What's the syntax to add Selenium as a dependency using the Gradle Kotlin DSL? error: thufir@dur:~/NetBeansProjects/HelloKotlinWorld$ thufir@dur:~/NetBeansProjects/HelloKotlinWorld$ gradle clean...
Lindalindahl asked 17/12, 2018 at 13:3

© 2022 - 2025 — McMap. All rights reserved.