29 questions from the last 30 days
17
votes
3
answers
2k
views
Exception in PluginGradle: This method is forbidden on EDT because it does not pump the event queue
After updating my Android Studio to Feature Drop | 2025.2.2, when I open my project I receive this error:
java.lang.IllegalStateException: This method is forbidden on EDT because it does not pump the ...
2
votes
1
answer
101
views
Hilt compilation error : Android BaseExtension not found
Following this tutorial to add Hilt to my project, I get this error when compiling the code:
* Exception is:
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin ...
4
votes
1
answer
90
views
Multi-Gradle with Spring Boot Config Question
I'm looking for an explanation to why do I need to have a build.gradle in my service directory to stop the root build.gradle from treating it like a buildable project:
My Directory:
root:
|-> ...
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....
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 ...
1
vote
1
answer
97
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(&...
-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 ...
-3
votes
1
answer
82
views
Disabling donation banner of openapi-generator-gradle-plugin
I am using the Maven repository openapi-generator-gradle-plugin version 7.14.0
I want to disable the console banner of openapi-generator-gradle-plugin.
I have this code to generate my code from api ...
0
votes
1
answer
97
views
Banuba SDK – Gradle 401 Unauthorized when resolving packages (GitHub Packages)
I was invited by my team leader to a private GitHub repo for a Flutter project.
The project runs successfully on his machine, but when I try to run it on my machine (Windows + Android Studio), I get ...
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\[...
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
vote
1
answer
85
views
Is there a like of init.gradle but for pluginManagement.repositories?
I would like to stick some permanent Gradle settings (e.g. pluginManagement section) in ~/.gradle instead of per-project settings.gradle. Is there a way to do so, like there is ~/.gradle/init.gradle ...
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 ...
0
votes
0
answers
85
views
Gradle error: "Unable to start the daemon process" and "Could not initialize native services" on Windows
I’m trying to build an Android project in Android Studio on Windows, but Gradle fails to start with the following error:
Unable to start the daemon process.
This problem might be caused by incorrect ...
0
votes
0
answers
81
views
Gradle Fails to Find Tuya SDK 6.11.1 (com.thingclips.smart) - Repository Issue?
It's been 3 months now that I am encountering a persistent Gradle build failure while attempting to integrate the Tuya SmartLife App SDK for Android. The main dependency is failing to resolve. I'm on ...