Skip to main content
0 votes
1 answer
33 views

Apply gradle plugin conditionally based on productFlavor in Kotlin DSL

I have two product flavors in my app, one being "global" and "fdroid" the other. I want to add plugin libs.plugins.google.services only to the "global" build. Here's my ...
Roozbeh Zarei's user avatar
0 votes
0 answers
38 views

How do I fix "Some Kotlin runtime libraries and <x> other jars have unsupported binary format"

Preface: I'm not great at Gradle and I used the Kotlin Multiplatform Wizard in order to create my multiplatform project (for Desktop & Web). Then I downloaded the created project and loaded it ...
8SIXSector's user avatar
0 votes
0 answers
27 views

React Native 0.80.1 + Gradle 8.2 build failing with :react-native-gradle-plugin:compileKotlin error

I'm facing a build failure in my React Native 0.80.1 project with Gradle 8.2. The error occurs during :react-native-gradle-plugin:compileKotlin task. Error Details: Task :react-native-gradle-plugin:...
Anjali Deshmukh's user avatar
1 vote
1 answer
39 views

Type inference warning in build.gradle.kts

In my build.gradle.kts I am getting randomly errors around create("foo") with lambda saying: Cannot infer type for type parameter 'S'. Specify it explicitly It happens both for ...
Jay Dee's user avatar
  • 2,686
0 votes
0 answers
65 views

java.lang.NoSuchMethodError: void kotlinx.coroutines.CompletableDeferredImpl.initParentJob(kotlinx.coroutines.Job) when building Android project

I am getting the following error when trying to build my Android project: Cause 1229: java.lang.NoSuchMethodError: "void kotlinx.coroutines.CompletableDeferredImpl.initParentJob(kotlinx....
Hitesh Matnani's user avatar
0 votes
2 answers
63 views

Gradle Kotlin: how to specify plugin repository credentials taken from gradle.properties?

When using Groovy Gradle, I have the following settings.gradle: pluginManagement { repositories { maven { url = 'https://plugin-repo.pany.com' credentials { username "$...
alamar's user avatar
  • 19.4k
4 votes
1 answer
133 views

How to correctly opt-in to Experimental APIs in Kotlin Multiplatform + Compose?

I’m working on a Kotlin Multiplatform + Compose Multiplatform project and trying to opt-in to ExperimentalMaterial3Api. In my build.gradle.kts, I added: sourceSets.all { languageSettings.optIn(&...
Vivek Modi's user avatar
  • 7,817
0 votes
0 answers
76 views

Gradle Configuration Cache project.version Migration

I have the following Gradle deprecation warning with Gradle 9: Invocation of Task.project at execution time has been deprecated. How can I migrate the build code that causes the warning? tasks....
user2715478's user avatar
  • 1,295
0 votes
1 answer
110 views

Flutter(Kotlin DSL)+Firebase [duplicate]

Since few days I'm facing following error in Flutter Firebase. FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':firebase_core:...
LordVader's user avatar
2 votes
1 answer
159 views

Setting up cocoapods on kmp (kotlin multiplatform) project in separate gradle file

Im trying to setup cocoapods in kmp project on android studio in separate cocoapods.gradle.kts file to be able to exclude it if platform is windows and run it if its mac. In my build.gradle.kts: if (...
Nikola Srdoč's user avatar
0 votes
0 answers
40 views

how to apply a kotlin DSL gradle in a groovy DSL gradle

In my android app module, the build.gradle file is a groovy DSL gradle. I use the below code to apply a kotlin DSL gradle. apply from: "../my-gradle/demo.gradle.kts The demo.gradle.kts like below:...
Yamamoto Shizuoka's user avatar
1 vote
0 answers
51 views

How to build klib using C++ in Kotlin multiplatform and import it into a regular project for use?

I have some code that needs to be completed in C++, and I hope to compile the C++ code into some form of dynamic library or klib, which can then be used in the Kotlin multiplatform project or as a ...
masterQian's user avatar
0 votes
0 answers
42 views

How can I run two gradle tasks concurrently

I have two gradle tasks that start different servers: tasks.register<Exec>("frontendDevServer") { workingDir = file("src/frontend") commandLine("npm", "...
asm_x86's user avatar
0 votes
0 answers
41 views

Can't launch my react-native project on Android, please suggest correct versions combination

Please help me find the right combination of versions. I am trying to launch my react-native app on Android for several days dealing with many different errors that I feel I am going in circles. It ...
Boris Mitioglov's user avatar
0 votes
0 answers
58 views

Flutter login function works in debug mode but fails in release APK

Problem I built my Flutter app using flutter build apk and installed it on my device. The login functionality that works perfectly in debug mode (when running through Android Studio) completely fails ...
Karthick Raja's user avatar

15 30 50 per page
1
2 3 4 5
93