gradle-kotlin-dsl Questions

1

This App Bundle contains native code, and you've not uploaded debug symbols. We recommend you upload a symbol file to make your crashes and ANRs easier to analyze and debug. I am trying to resolv...

3

Solved

I have an issue with Firebase Distribution configuration. Here's a part of my build.gradle in Kotlin DSL flavorDimensions("dim") productFlavors { create("fl1") { application...
Congius asked 26/6, 2020 at 9:51

3

Solved

How this code should be translated from Groovy to Kotlin DSL in Gradle? testOptions.unitTests.all { testLogging { exceptionFormat = "full" events "passed", "failed"...
Rule asked 1/10, 2020 at 17:18

3

I'm running a flutter project and recently updated a bunch of dependencies. I'm getting this error: * What went wrong: Execution failed for task ':flutter_google_places_sdk_android:compileDebugKotl...
Joyann asked 21/11, 2023 at 5:33

4

Solved

I have created a new KMM project and I get red errors in all Gradle files kdoctor: [v] System OS: macOS (12.5.1) CPU: Apple M1 Pro [v] Java Java (openjdk version "17.0.4" 2022-07-19 L...

3

Solved

How can I reformulate: testCompile.extendsFrom compileOnly of the Gradle Groovy DSL to its Kotlin-based equivalent? configurations { testCompile{ extendsFrom(compileOnly) } } My approach ...
Cowen asked 18/6, 2020 at 14:19

1

I am creating a project in Android Studio. I want to keep it modular and declare dependencies and versions at single place and take from there in my all modules. What I've done so far-> Created...

3

Solved

This basically extends this question to Kotlin DSL instead of Groovy DSL: How does the Groovy DSL solution of if (hasProperty('buildScan')) { buildScan { termsOfServiceUrl = 'https://gradle.com...
Cedrickceevah asked 17/4, 2019 at 10:34

5

Solved

I am trying to run the code block below, after reading multiple posts on the topic and the Gradle manual. I run the below and get the following error: execCommand == null! Any ideas on what I am do...
Quarrelsome asked 4/2, 2020 at 15:57

2

Solved

What would be the equivament of the following in Kotlin DSL (build.gradle.kts)? processResources { from(sourceSets.main.resources.srcDirs) { filter ReplaceTokens, tokens: [version: version] } } ...
Elegance asked 16/9, 2020 at 12:6

2

Android Studio Iguana | In the 2023.2.1 Canary 7 version, this error occurs at the end of the build. For example, it can be verified that this is happening in the Now Android project created by Goo...
Ostmark asked 12/10, 2023 at 8:48

1

I just recently updated my Android Studio to Jellyfish | 2023.3.1. It's been a while since I created a new project using Project Wizard. I'm trying to build a new Compose project and it doesn't ma...
Integrand asked 9/5 at 15:26

2

Solved

How can I add maven { url "https://jitpack.io" } in settings.gradle.kts?? a red line appears under the url, the error says: Unexpected tokens (use ';' to separate expressions on the same ...
Tenne asked 12/8, 2023 at 10:15

6

We've been using a snippet like this one to rename the APK file generated by our Gradle build: android.applicationVariants.all { variant -> variant.outputs.all { outputFileName = "${variant.n...
Planer asked 11/6, 2018 at 7:28

4

Solved

Old way of apk naming is no longer working, is there another api in AGP 8+? Here's my kts build.config: android { ... applicationVariants.all { variant -> variant.outputs // default type don...
Pipes asked 28/7, 2023 at 13:44

4

Solved

I have the following project structure root-project │ build.gradle.kts │ └───multiplatform-project │ │ build.gradle.kts │ │ │ └───src │ │ kotlin | | js │ └───simple-kotlin-project │ build.gradl...
Barsac asked 13/12, 2019 at 11:37

5

I have a Gradle 7.2 custom plugin that is working properly. I want to configure it to use the new Gradle Version Catalog for dependency information. I know how to configure and use the version cata...

11

Solved

I want to add a sourceset src/gen/java. With groovy this is rather easy and already described in https://discuss.gradle.org/t/how-to-use-gradle-with-generated-sources/9401/5 sourceSets { gen { j...
Chiefly asked 26/9, 2017 at 7:5

21

I have a fresh install of IntelliJ, I created a new kotlin gradle project using the following settings: This produces the following build.gradle.kts, (the exact same file works on my Windows mac...
Rhyne asked 28/9, 2018 at 21:13

43

Error:Execution failed for task ':app:compileDebugKotlin'. > Compilation error. See log for more details build:gradle(Module:app) buildscript { repositories { maven { url 'https://jitpack.io...
Centering asked 8/5, 2017 at 13:21

21

Solved

I've just updated my flutter project packages to be null-safety compliant and now Android Studio wants me to update my project to use the latest version of Kotling Gradle Plugin. Can't see where to...
Vaasa asked 30/1, 2022 at 21:33

3

Solved

I have published maven bom and imported it in top level build.gradle.kts as: allProjects { dependencies { implementation(platform("com.example:some-dependencies:1.2.3")) } } And then ...
Stewardess asked 21/4, 2021 at 9:15

0

Following this documentation to get multi-module test reports for instrumented tests in a single HTML page, how to use it when using Kotlin DSL with Version Catalog? So far none of these approach w...

2

I have upgraded my android studio version to Android Studio Iguana | 2023.2.1 Canary 6 Build #AI-232.9921.47.2321.10875067, built on September 28, 2023 Runtime version: 17.0.8+0-17.0.8b1000.22-1079...
Fresno asked 6/10, 2023 at 6:20

26

Build.gradle.kts buildscript { repositories { google() mavenCentral() gradlePluginPortal() } dependencies { classpath ("com.android.tools.build:gradle:7.0.2") classpath ("org...

© 2022 - 2024 — McMap. All rights reserved.