Questions tagged [gradle-wrapper]
26 questions
252
votes
10 answers
How/When to generate Gradle wrapper files?
I am trying to understand how the Gradle Wrapper works. In many source repos, I see the following structure:
projectRoot/
src/
build.gradle
gradle.properties
settings.gradle
gradlew
gradlew.bat
gradle/
wrapper/
…

smeeb
- 27,777
- 57
- 250
- 447
3
votes
0 answers
When upgrading gradle with "./gradlew wrapper", no source and javadoc jar was downloaded, how to fix it?
I need to debug a faulty gradle task that is triggered under org.junit.platform.commons.util.Preconditions
The debugging will require source jar & javadoc jar to be downloaded for gradle-api.jar. However, when I try to download them with:
$./gradlew…

tribbloid
- 4,026
- 14
- 64
- 103
2
votes
0 answers
Issue while trying to setup the spring-boot open source project from Github
I was trying to setup the spring boot open source project in order to contribute it. I was going through the steps in here. I am on the main branch. When I try to run
./gradlew build
I am getting this error
* Where:
Settings file '

hvydya
- 21
- 2
1
vote
0 answers
Exception: Gradle task assembleDebug failed with exit code 1. Could not find com.android.tools.build:gradle:8.1.0
So, I just started working on a new Flutter app, and also just installed gradle version 8.1, but as soon as I opened my project in vscode, I saw a couple of errors in the "android" folder. First is this one (in app/build.gradle):
unable to resolve…

Rayyaan Malik
- 11
- 2
1
vote
1 answer
React Native Android: Execution failed for task ':app:signReleaseBundle'. java.lang.NullPointerException (no error message)
Problem
I am trying to build the app (React Native on Android) but it fails with this error:
Task :app:signReleaseBundle FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
FAILURE: Build failed with an exception.
What…

Gh05d
- 7,923
- 7
- 33
- 64
1
vote
0 answers
why can I use gradlew on windows?
I'm on Windows 10.
I thought that only the gradlew.bat script can be run from the terminal/command prompt, And gradlew only on linux/mac terminal.
I was wondering why I can still run gradlew from windows terminal/command prompt ?

soung
- 1,411
- 16
- 33
1
vote
1 answer
Gradle wrapper times out when using a proxy
This question is specifically about the Gradle wrapper and not a full Gradle installation.
My company forces me to use a proxy to access many urls, and all it usually takes to fix timeout problems is to configure whatever is trying to access said…

nonzaprej
- 1,322
- 2
- 21
- 30
1
vote
1 answer
Gradle 6.8 to 7 version update in a spring-boot application
d:\myProject>gradlew build --warning-mode all
> Task :compileJava UP-TO-DATE
Property 'options.compilerArgumentProviders.apt$0.name' is not annotated with an input or
output annotation. This behaviour has been deprecated and is scheduled to be…

Manoj H U
- 37
- 9
0
votes
0 answers
Android-Studio Giraffe broke the gradle-wrapper.jar that called my unit tests
$ ./gradlew test stopped working, so I went with this:
$ java -Dorg.gradle.appname=gradlew -classpath /home/phlip/projects/app/App/gradle/wrapper/gradle-wrapper.jar org.gradle.wrapper.GradleWrapperMain --project-dir App --console=verbose test
It…

Phlip
- 5,253
- 5
- 32
- 48
0
votes
0 answers
Error : Could not determine java version from '11.0.19'
I was using java 8 until now, but I needed to upgrade java to jdk-11 for one project. As I installed newer version and set JAVA_HOME & PATH to new jdk-11 path, I started getting this error in eclipse :
An internal error occurred during: "Update…

Mandar Remane
- 33
- 6
0
votes
0 answers
Grade wrapper task failed with kotlin dsl compilation issues
Grade wrapper task failed with kotlin dsl compilation issues
I have a project which needs gradle 8.x.x. so i have ran the wrapper task to generate gradlew and gradle-wrapper.properties file. but it was failing with compilation issues. I have got the…

tamizh ezhil
- 1
- 1
0
votes
0 answers
Faced an error regarding implicit task dependency while building an android app in android studio
Recently I created a new android app containing native c++ libraries.
I used gradle-8.0, AGP-7.4.2, JDK-11 and C++14.
The app has a module dependency which contains native c++ code. This module has a dependency on a remote AAR file that is download…

mehul vora
- 1
- 1
0
votes
0 answers
Sign android app from the command line on mac m1
I want to be able to run ./gradlew signingReport from my command line to get the key signing for my apps. However I've had to reset my computer and forgot how this is accomplished. I've already made an upload keystore file. However when I run…

Julia Pak
- 475
- 6
- 19
0
votes
0 answers
Unable to get mutable Windows environment variable map Gradlew Error
I am trying to skid a minecraft client but I keep getting errors like this:
FAILURE: Build failed with an exception.
* What went wrong:
Unable to get mutable Windows environment variable map
The source code:…

Beronicous
- 1
- 1
0
votes
0 answers
How should I avoid downloading gradle.zip when I want to build my neo4j graph-data-science-master project?
I am new to remote development and feel quite confused as the remote device I use is at offline status.
I followed the README doc of the repository and skipped installing SDKMAN(as it is a manegement tool for jdks so I thought it is unnecessary).…

Z2001
- 1
- 1