Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [gradle]

Gradle is a project build automation tool that uses a Groovy DSL. Gradle build scripts support Maven and Ivy repositories as well as plain file system for dependency management.

2 votes
0 answers
23 views

Gradle does not see log field through @Log4j2 annotation inside lombok in InteliJ

I have a class @Log4j2 public class TestClass { public void doSmth() { log.info("doSmth"); } } When I try to compile my code using gradle (tap on "assemble" button ...
Oblivion's user avatar
0 votes
1 answer
9 views

Create Gradle wrapper without installing Gradle

I want to use Gradle, but I do not want to install it. It is possible to compile a project using its Gradle wrapper. If you already have a Gradle project, you can initialize a new project using the ...
18446744073709551615's user avatar
0 votes
1 answer
17 views

Using the GitHub Repository as a Gradle Dependency in Android project

I have forked a project from github, modified it and now I want to use my modified version as dependency in my project. Like this: implementation("com.github.my_user_name:library_name:master-...
code_dude's user avatar
  • 1,061
0 votes
0 answers
19 views

Android - migration to Kotlin 2.0 causes errors

My Android App was working fine until I started migrating to Kotlin 2.0. All I changed in the build gradle was: changing these two lines id("org.jetbrains.kotlin.android") version "1.9....
Tobias Reich's user avatar
  • 5,122
0 votes
1 answer
20 views

Slow Gradle shutdown after testing with Testcontainers, Kotlin, Spring Boot

I have a Kotlin Spring Boot application that integrates with redis, and builds with Gradle. Recently I added some Testcontainer integration tests to make sure everything is working as intended. I ...
thatonetallguy's user avatar
-1 votes
0 answers
19 views

FXGL. package with shapes is not visible

While i'm trying to use class from com.almasb.fxgl.physics.box2d.collision.shapes package like this: physicsComponent.setFixtureDef(new FixtureDef().shape(new CircleShape((float) hitBoxRadius))); with ...
Drained's user avatar
  • 109
0 votes
0 answers
14 views

Error "Caused by: org.gradle.api.UnknownDomainObjectException: SourceSet with name 'commonTest' not found." while trying to register a gradle task

I have the following issue with Android Studio in my Kotlin Multiplatform Project. I want to add conformance tests to my project and for this i wanted to add a new source set and have all the test ...
Maverick1st's user avatar
  • 3,774
0 votes
0 answers
14 views

AAPT2 process unexpectedly exit. Error output: aapt2 W 07-25 11:01:48 4839 56976 LoadedArsc.cpp:657] Unknown chunk type '200'

Facing issue while upgrading targetSdkVersion from 33 to 34 Different Versions mentioned below: "react-native": "0.66.3" gradle-wrapper.properties : distributionUrl=https\://...
iBeginner's user avatar
  • 261
0 votes
0 answers
7 views

gradle-docker-compose - Cannot create a proxy class for abstract class 'ComposeExtension'

Recently a project of mine has started failing unprompted. When I would run gradle test (launching the project remotely using Jenkins) the project would instead return the following error: * Where: ...
sprogissd's user avatar
  • 2,985
0 votes
0 answers
15 views

How to configure React Native android dependencies to use remote repository in gradle build

I am working on a project that is built off the bare minimum template from expo. The build.gradle file is setup to install the dependencies from an internal Artifactory instance. buildscript { ...
Jerox's user avatar
  • 1
0 votes
1 answer
13 views

Could not find [SOME_PACKAGE] Searched in the following locations https://dl.google.com/dl/android/maven2/

So I have a flutter project and I added the flutter_contacts to my pobspec.yaml and rebuild the app. few lines of output error: Launching lib\main.dart on PHONE in debug mode... Running Gradle task '...
Mohammad Huseyn's user avatar
0 votes
0 answers
17 views

I initialized firebase for user auth and other functions in my flutter app and it's returning some errors I don't understand

This is the error being returned. I already initialized flutter clean and flutter run still returned same thing. I tried Flutter clean and flutter run, all went to no avail. FAILURE: Build failed with ...
shizzleclover's user avatar
-2 votes
0 answers
9 views

Javadoc failure with Kafka Test

I am trying to run ./gradlew clients:test --tests KafkaProducerTest on the Apache Kafka repository downloaded from github. However, when I do it, I get the following error: starting a Gradle Daemon (...
xyz6675's user avatar
  • 361
0 votes
1 answer
14 views

Execution of Gradle Tasks and find out why are they executed

I'm currently doing a Udemy Course to learn Kotlin and I've a Question about Gradle and Tasks. I've tried HILT and had to add kapt to my Project (empty project with jetpack-compose). My app/build....
John Doe's user avatar
  • 135
0 votes
0 answers
20 views

AIDE project initialization shows up with errors

When I try to sync the project, I get: java.lang.IllegalArgumentException: Unsupported class file major version 65 Caused by: BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_'...
Dragonite Brian 1024's user avatar
0 votes
0 answers
22 views

Issues with Firebase Dependancies:

When updating a previously made app to capacitor 6.0, attempting to build in android studio leads to this error message: FirebaseInstallations.getInstance().getToken(false).addOnSuccessListener(...
EWake's user avatar
  • 1
0 votes
0 answers
7 views

Android. Gradle. Conflict of native SO libraries names on Windows

I have a huge odl Android project and now we need to update a version of some old legacy library. We are trying to keep 2 version of the same library. Now they are totally different inside. There are ...
Vetalll's user avatar
  • 3,634
0 votes
0 answers
16 views

React native Expo build error in firebase service

I am having a problem that I am not being able to solve, when running eas build android I am having a Gradle error which I go to the expo console to see the error and I have the following one. Error ...
meta1465's user avatar
0 votes
0 answers
14 views

Android Cucumber tests are not invoked

I have written BDD tests for Android with Cucumber and Gherkin but when I run the test Class "CucumberTestRunner", it shows that tests 0/0 are done, i.e., it doesn't see the tests I have ...
Ali Has's user avatar
  • 670
-1 votes
1 answer
17 views

How to add Suffix in openapi generator in spring boot gradle?

I am using openapi generator to generate the interface and models from openapi specification. Everything is working fine. But, I want to have suffix in my model name. For example: Employee would be ...
Abhijit Mondal Abhi's user avatar
0 votes
0 answers
22 views

flutter build apk: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0

`When I run flutter build apk first time after cleaning project there are warnings in output. Second time there are no warnings e: C:/Users/izgrablic/.gradle/caches/8.9/transforms/...
izidoraz's user avatar
0 votes
0 answers
14 views

Error integrating google_maps_flutter and location packages in Flutter Kotlin Version Mismatch with Flutter SDK Versions

Description: I'm facing an issue with Kotlin version mismatching the SDK versions in my Flutter project. Despite trying different versions of Kotlin and the Android Gradle plugin, I’m encountering ...
Sethu's user avatar
  • 1
0 votes
0 answers
47 views

Error "APKs or Android App Bundles in this track must require the following features:android.hardware.type.automotive"

I am trying to add Automotive features to my app. I added a module with <uses-feature android:name="android.hardware.type.automotive" android:required="true" /> ...
michaelsmith's user avatar
  • 1,045
0 votes
1 answer
40 views

How to add a maven dependency in gradle 8.x

My react-native android project is running on Gradle v8.3. I have files like settings.gradle and build.gradle in my android project. The problem I'm having is when I try to implement PendoSDK for ...
Chaudhry Talha's user avatar
-1 votes
0 answers
23 views

How can I run JaCoCo with gradle using Intellij?

I am getting the following error when trying to run a Spring Boot test with coverage in Intellij. Caused by: java.lang.LinkageError: loader 'bootstrap' attempted duplicate class definition for java....
Juan Bustamante's user avatar
0 votes
1 answer
23 views

Run Gradle Code Automatically When Android Plugin Detected

tldr: I want some task configuration to run automatically whenever the Android Gradle Plugin is used. How? I have a very large gradle project with many different build scripts. Some are android, some ...
dave mankoff's user avatar
  • 17.6k
0 votes
2 answers
36 views

Could not resolve com.android.tools.build:gradle:7.4.2 convention module

I'm trying to write gradle plugin in my android project. I have a build-logic module which contains convenion module. I wrote a small plugin JvmLibraryPlugin and registered it in the convention module ...
TOvchinnikova's user avatar
0 votes
0 answers
13 views

Build issue: Conflicts with Google Protobuf dependency with existing Firebase dependencies

Facing Issue when adding - implementation 'com.google.cloud:google-cloud-vision:3.44.0' library in gradle facing error as shown in image Gradle Error code below - Caused by: java.lang....
Nitesh Chauhan's user avatar
1 vote
0 answers
21 views

After spring-boot update pom resolution failed

I updated the spring-boot version from 3.0.5 to 3.3.2. I am working with gradle 8.9 springBootVersion=3.3.2 dependencyManagementVersion=1.1.6 After that I sporadically get a lot of error messages ...
Tony's user avatar
  • 418
0 votes
1 answer
27 views

Could not determine the dependencies of task ':app:processDebugManifest' (FLUTTER)

I get this error when running my flutter application. `FAILURE: Build failed with an exception. What went wrong: Could not determine the dependencies of task ':app:processDebugManifest'. Could not ...
Pistis's user avatar
  • 3
0 votes
1 answer
18 views

Error: Type 'ImageConfiguration' not found. / Error: Type 'ImageProvider' not found

I was trying to get a photo from the backend and suddenly start show these errors in debug console and when I run another project it start show the same error so became all flutter projects in my ...
Qusai Al-Hashish's user avatar
0 votes
0 answers
45 views

Why icon not showing on SplashScreen using Jetpack-compose?

I'm try to run SplashScreen api using jetpack compose on android lolipop5.1, the screen background is showing but the icon is not. i'm using splash api 1.0.1. i'm using a viewmodel to make splash ...
Fatima Jamal's user avatar
0 votes
1 answer
29 views

Local AGP jar was not found in any of the following sources

It happened so that I need to make an app buildable using local tools only. I am stuck with local AGP jar. I have tried to add it to classpath: classpath(files("gradle/com.android.tools.build....
Void's user avatar
  • 1,291
0 votes
0 answers
23 views

How to resolve "FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory" error

Encountering JavaScript Heap Memory issues during the execution of our TestCafe automation test suite on our Jenkins machine running CentOS 7.7.1908 Linux. Please find the below error message: Last ...
Karthik E's user avatar
0 votes
0 answers
43 views

Metadata.bin file not found on initial gradle sync with Android Studio Koala - 2024.1.1

I recently updated Android Studio from Chipmunk version - 2021.2.1 to Koala version - 2024.1.1. Now, when I open my projects, the gradle synchronization starts and always ends with: C:\Users\[MY_USER]\...
LucaCA's user avatar
  • 1
1 vote
2 answers
37 views

how to solve ':app:compileFlutterBuildDebug' in flutter build apk

Error when building the project with flutter build apk command I was trying to build my Flutter app and this error shows up: Unhandled exception: RangeError (offset): Invalid value: Not in inclusive ...
HooDie's user avatar
  • 11
0 votes
0 answers
20 views

Slowness in check style task after upgrade to gradle to 8.7

I have recently upgraded my gradle build to version 8.7. I can see it quite slow compare to our existing 6.6 builds. While doing profiling I fund that most of the time is spent in check style task. ...
Mudit bhaintwal's user avatar
0 votes
2 answers
45 views

Curl command execution in Gradle.kts Script

I would like to execute below curl command in my gradle.kts Script. Tried gradle task but command not executable with error [pid=1991, exitValue="Not exited"]. curl -v -H Content-Type:text/...
Pawan Soni's user avatar
0 votes
0 answers
13 views

Custom Module not found Android Dependencies (Flutter Plugin)

I have been trying to install one particular custom android module for almost a day now. I have tried different resources (including ChatGPT) but it seems I am probably missing something. Please I ...
Georgina's user avatar
  • 832
2 votes
0 answers
79 views

Unable to connect visualvm to java application after 7.3 gradle upgrade

We recently upgraded gradle version in our project from 7.1.x to 7.3.x. We observed that we are no longer able to connect visualvm java(11) application running in kubernetes. Port-forward works but ...
curious_soul's user avatar
0 votes
0 answers
8 views

Script variable conflicts with a named object (Gradle/Groovy DSL)

I am surprised to find out that the name spaces of script variables and named objects interact in a very bad way. In my real build script, the conflicting name was integrationTest and it looked like I ...
18446744073709551615's user avatar
1 vote
1 answer
264 views

Android resource linking failed with android-35 SDK during Flutter release build

I am new to flutter development and so far I have been testing the android app in debug mode. I want to release the app to share with friends and family. However, I keep getting errors when I try to ...
Varun Verma's user avatar
0 votes
0 answers
17 views

Task 'ijDownloadSources91ee8444-467' not found in root project 'projectABC' after clicking "Download Sources"

i got this error on macbook arm when click "dowload source". I often click on some Android file to read its code. However, they often require downloading via the "Download Sources"...
Nguyễn Mạnh Cường's user avatar
0 votes
0 answers
14 views

How to Automate Adding Dependencies for an Android Plugin in Unity?

I've created an Android plugin for Unity, and it requires some dependencies to be added manually. The current steps to do this are: Go to Edit > Project Settings > Player > Publishing ...
Naor Geva's user avatar
2 votes
1 answer
48 views

Java annotation processor does not get executed during compilation

I am currently trying to implement a small fun library, that auto-generates fixture classes on compile time by using anootation processing: https://github.com/floydkretschmar/fixturize/tree/main/...
floydk's user avatar
  • 83
1 vote
1 answer
76 views

How can I add latest stable dependencies and plugins to my latest version of Android Studio Koala?

I want to implement MVVM architecture in my project. My Android Studio is Koala. I want to use the latest versions which are compatible with my project. My module level gradle file looks like this: ...
Aamir Khan's user avatar
-1 votes
0 answers
41 views

Gradle Doesn't use correct JVM [closed]

I am currently trying to compile a basic mod build for Minecraft 1.12.2. However, when I type the gradle command it tells me: Unable to start the daemon process. This problem might be caused by ...
Jxyzh's user avatar
  • 1
1 vote
0 answers
33 views

AGP 8.4+ and Hilt (Android Library Modules in Multi-module architecture, R8)

I found this patch note when the 8.4 version came out: https://developer.android.com/build/releases/past-releases/agp-8-4-0-release-notes#library-classes-shrunk "Starting with Android Gradle ...
No_Name's user avatar
  • 98
2 votes
1 answer
82 views

Missing classes detected while running R8

I have a multi module project setup like this: app module presentation module (Android module) domain module (Kotlin module) data module (Android module) The dependency graph presentation -> ...
No_Name's user avatar
  • 98
0 votes
0 answers
22 views

How to customize docker packaged using gradle bootBuildImage

version: spring-boot: 3.3.0 jdk: 21 gradle: 8.6 I have a springboot application that I intend to use docker for containerized deployments (mainly for runtime management). It uses the logback logging ...
greyWolf 's user avatar

15 30 50 per page
1
2 3 4 5
1050