52,916 questions
Advice
0
votes
0
replies
25
views
How to create BuildConfig in KMM with flavors
My use case is that I have different clients - clientA, clientB etc, which should be a different flavor.
The issue is that I have tried using BuildKonfig library with no success in that matter.
As far ...
0
votes
0
answers
53
views
Duplicate Hamcrest Class Errors When Runtime Dependsancy On Json-Simple Added
I am using the latest stable version of Android Studio (Otter 2) and my library dependances are not reporting any newer versions available.
I am writing a class that will parse JSON objects with lives ...
-2
votes
0
answers
60
views
Java/ gradle build error in mendix - how to resolve? [closed]
I am using Mendix and I am getting a CE9803 build error when I install some Marketplace modules, the error disappears when I delete the module (such as Encryption and Community Commons). The error is ...
0
votes
1
answer
94
views
Cannot import @DataJpaTest on Spring Boot 4 test
In a gradle amd Spring Boot 4 project, I want to create a test with @DataJpaTest, as I did with Spring Boot 3.
In this Spring Boot 4 project, I can't resolve import @DataJpaTest.
I invalidated the ...
1
vote
1
answer
92
views
Gradle cannot find KSP plugin for Room setup in new Android Studio project
I'm completely stuck on a Gradle sync error:
Plugin [id: 'com.google.devtools.ksp'] was not found.
What I'm trying to do
I am simply trying to add the Room and KSP dependencies to a fresh Android ...
0
votes
1
answer
28
views
Gradle 9 - Change jar names for subproject
I have a main gradle project which is like this:
plugins {
id 'java'
}
group = 'com.elikill58'
subprojects {
apply plugin: 'java-library'
repositories {
mavenCentral()
}
...
0
votes
1
answer
38
views
How to use ReplaceToken-filter with properties and Gradle 9 Configuration Cache
In a Gradle multi project build, the project is using a custom property foo, for example for the processResources task.
This property can optionally be passed via the CLI using ./gradlew ... -Pfoo=bar....
1
vote
1
answer
126
views
Gradle fails to resolve Firebase dependencies with version catalog (libs.versions.toml) despite correct setup
I'm trying to set up an Android project with several Firebase libraries (Auth, Firestore, Vertex AI) using the modern Gradle version catalog (libs.versions.toml). However, Gradle is consistently ...
0
votes
1
answer
74
views
Gradle could not connect to Kotlin compile daemon
I made a simple Android Studio project using Jetpack Compose. But when I put some composables (elements) like Card, Row, Column and Box and tried to build it, it gave me a Gradle-related error message:...
0
votes
0
answers
37
views
Gradle can't find file even though it exists
I'm brand new to gradle and trying to build an existing project using a gradle wrapper. When I run the command gradlew clean build, I get the error:
Could not resolve all files for configuration '...'...
2
votes
1
answer
151
views
Android Studio Kotlin: SourceSet with name 'main' not found
in the latest versions of Android Studio I can no longer use this feature and I get an error:
"SourceSet with name 'main' not found :27"
Line 27:
classpath = project.sourceSets\[...
3
votes
1
answer
102
views
Unable to find method ''java.lang.String com.squareup.javapoet.ClassName.canonicalName()''
The Gradle script syncs correctly, but when I try to run the application I get the following error:
Unable to find method ''java.lang.String com.squareup.javapoet.ClassName.canonicalName()''
'java....
0
votes
1
answer
94
views
flutter build apk fails with resource linking error when using flutter_bluetooth_serial
I’m working on a Flutter app that uses Bluetooth Serial (flutter_bluetooth_serial).
When I run the app in debug mode with flutter run, everything works fine.
However, when I build the release APK ...
-1
votes
1
answer
101
views
Gradle sync errors due to dependency verification failures on source JARs
When I run Gradle sync in Android Studio, I get artifact verification errors. All of them appear to be about source JARs that are not listed in verification-metadata.xml. When I run the Gradle command ...
1
vote
1
answer
96
views
Migration from liquibase.gradle plugin from 2.2.2 to 3.0.1 causes "Unable to load class 'liquibase.Scope'." error
I'm trying to upgrade the liquibase gradle plugin from version 2.2.2 to 3.0.1.
Setup
SDK 21.0.9
Gradle 8.14
Brand new IntelliJ Kotlin project
Version 2.2.2 - BUILD SUCCESSFUL
plugins {
kotlin(&...