Questions tagged [gradlew]

gradlew is an executable file created by the gradle wrapper plugin, to replace the normal gradle executable for a project

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Gradle annotationProcessor Could not find org.hibernate:hibernate-jpamodelgen

My gradle project's build does not works with gradle 7.4.2 and java 17. There is my dependencies declaration : dependencies { implementation 'org.springframework:spring-context' api 'org....
Valeriane's user avatar
  • 944
0 votes
1 answer
41 views

Issues building Android gradle project: Task :buildSrc:compileGroovy FAILED

I am trying to build an Android SDK on my Windows machine. I upgraded my Java to latest 64-bit JDK (21) and when running .\gradlew.bat core:assembleCoreDebug, I get these errors. How to resolve it? ...
Mary's user avatar
  • 161
0 votes
0 answers
12 views

Android gradle bundleRelease cmd getting failed on mac

I am using AGP version 8.1 & Microsoft open JDK version 17.0.9 gradle.wrapper.properties as below distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services....
Shanmugapriyan's user avatar
0 votes
1 answer
39 views

Gradle task assembleDebug failing due to previous javaHome being searched for while running Flutter

I'm a new user to Flutter and originally downloaded it with jdk-20 as the version of Java on my system. However, after realizing that jdk-20 was incompatible with certain Flutter processes, I ...
Shudhesh Velusamy's user avatar
0 votes
0 answers
22 views

Access variable from another gradle task

I have 2 task , I want to access variable from dependent task, But its giving null value task test1(type: Exec) { doFirst { def serviceUrl = "dummyUrl" rootProject.ext["...
niranjan pb's user avatar
  • 1,125
0 votes
0 answers
15 views

Python 2.7: elem.getiterator # cET compatibility AttributeError: 'NoneType' object has no attribute 'getiterator'

This issue was occuring Gradle Wrapper build samples. Issue was related to python. Following versions of python software currently installed in my system. python version: 2.7.18 (as it is required for ...
Narmadha's user avatar
0 votes
0 answers
65 views

CMake will not be able to correctly generate this project. CMake Error at CMakeLists.txt:2 (project): No CMAKE_CXX_COMPILER could be found

I am facing an issue with Gradle Wrapper build samples. Issue related to CMAKE. Following versions of software currently installed in my system. python version: 2.7.18 (as it is required for the ...
Narmadha's user avatar
0 votes
0 answers
32 views

flutter ./gradlew build fails for missing class

I am trying to build my Flutter app for Android by running from the commandline: ./gradlew build I am getting this error: Task :app:lintDebug FAILED Lint found 3 errors, 2 warnings. First failure: .....
AJ Gottes's user avatar
  • 413
1 vote
0 answers
28 views

Gradlew dependeny resolution stuck for ever

I tried to search this error clue, the closest i get this gradle forum where they discuss about enforcePlatform to be possible solution but we are no using any "platform" in our build gradle ...
Bharath N's user avatar
0 votes
1 answer
50 views

Jenkins build failing java.io.IOException: Cannot run program error=13, Permission denied

I have a jenkins pipeline where i am trying to run a gradle test and it has a .sh file which the test needs to run. While running the test it fails at the step where it tries to run .sh file with the ...
Arun Mohan's user avatar
0 votes
0 answers
43 views

CICFlowMeter Command Line Interaction

I have come across a problem where I have to use CICFlowMeter for Educational Purposes but the problem is that I cannot automate the process using CICFlowMeter Graphical User Interface (GUI) which is ...
S.A.M IR's user avatar
0 votes
1 answer
139 views

is there a way to fix Invalid preprocessing directive in android studio?

i have not edited the gradlew in any way but when i run code inspection it shows 19 errors mostly the same three (Invalid preprocessing directive),Expected method body,Expected unqualified-id which is ...
WordedCrib's user avatar
0 votes
0 answers
88 views

Could not resolve all files for configuration classpath

A problem occurred configuring root project 'My Application'. Could not resolve all files for configuration ':classpath'. Could not resolve com.android.tools.build:gradle:8.1.1. Required by: project :...
pubudu thameera's user avatar
0 votes
0 answers
20 views

Fail to assemble Android test build in CI

I'm trying to generate an Android release (or debug) build for UI test on Jenkins CI. I use this gradlew command : ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug But, i've this ...
Stéphane R.'s user avatar
  • 1,406
1 vote
2 answers
25 views

what can I do to Solve this to get The SHA-1 for firebase project setup?

while I executed the command ./gradlew signingReport I executed command to get SHA-1 it gave me Android Gradle plugin requires Java 11 to run. currently using Java 1.8. I tried to create the new ...
DomainiHabib's user avatar
0 votes
0 answers
28 views

this error in android studio while developing flutter android app

FAILURE: Build failed with an exception. Where: Build file 'G:\Flutter Apps\hehe\android\build.gradle' line: 26 What went wrong: A problem occurred evaluating root project 'android'. Build ...
Atharva Narkhede's user avatar
0 votes
0 answers
19 views

problem with jackson-core when building with gradle

When i try to build my project with gradle (clean, or check) i have the error below: the commands that i used are ./gradlew clean or ./gradlew check The version of gradle that i use is 7.5.1. I have ...
abdel's user avatar
  • 29
0 votes
1 answer
102 views

How to configure Intellij to use Gradle wrapper from directory other than project's root?

Suppose I have a monorepo with a bunch of microservices which form a single distributed system. All of them are JVM-based and use the most up-to-date Gradle as a build system. It's not a single Gradle ...
Kirill's user avatar
  • 6,954
0 votes
1 answer
410 views

Settings file '/home/expo/workingdir/build/android/settings.gradle' line: 10; path may not be null or empty string. path='null'

When I use eas build This happen. ` Running 'gradlew :app:bundleRelease' in /home/expo/workingdir/build/android Downloading https://services.gradle.org/distributions/gradle-7.5.1-all.zip 10 %. 20% 30%....
3019_ Aryan Nayak's user avatar
1 vote
1 answer
76 views

How to determine the version of the Gradle Wrapper?

Gradle Wrapper is typically a small JAR checked into source control, which just downloads the specified version of Gradle and passes commands through to it. Therefore even if you upgrade your Gradle ...
Adam Burley's user avatar
  • 5,706
0 votes
1 answer
384 views

Execution failed for task ':gradle:compileGroovy'. in android studio flutter

I'm trying to run a Flutter project through Android Studio, but I'm getting this error. What's the problem? this is the error : FAILURE: Build failed with an exception. * What went wrong: Execution ...
C.A.L.M Art's user avatar
-1 votes
1 answer
24 views

I wanna make apk for react native app and there is an error Gradle build failed with unknown error

implementation 'com.facebook.react:react-native:[0.32,)' I tried to do this but got the same error: and I update all required dependences and still same error and can't solve it so my some ...
Mahmoud Abdelwahab's user avatar
0 votes
1 answer
195 views

flutter run not working gradle show exit code 1

this is my error after running flutter run command it shows gradle debug running. /C:/Users/Rasul/AppData/Local/Pub/Cache/hosted/pub.dev/preload_page_view-0.1.6/lib/preload_page_view.dart:179:15: ...
Rasul's user avatar
  • 1
0 votes
0 answers
222 views

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....
Phlip's user avatar
  • 5,303
2 votes
2 answers
824 views

node_modules/react-native/react.gradle' as it does not exist

FAILURE: Build completed with 2 failures. 1: Task failed with an exception. Where: Build file '/Users/milanshrestha/Documents/work/hermes/mobile/HermesMobileV2/hermesmobile/android/app/build.gradle' ...
user9437108's user avatar
1 vote
1 answer
561 views

Build failed: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information

Task :expo-splash-screen:compileReleaseKotlin FAILED [stderr] e: file:///home/expo/workingdir/build/node_modules/expo-splash-screen/android/src/main/java/expo/modules/splashscreen/...
Arun Jojo's user avatar
0 votes
0 answers
499 views

Unrecognized option: -xmx64m Could not create the Java Virtual Machine

If you run ./gradlew clean on Android Studio Terminal or npx react-native run-android on Visual Studio Code, the following error occurs. Unrecognized option: -xmx64m Error: Could not create the Java ...
SuJi Gyeon's user avatar
0 votes
0 answers
88 views

Flutter build fail. Error in grade: org.gradle.api.GradleScriptException: A problem occurred evaluating project ':flutter_local_notifications'

I have a problem in my flutter project. The project was fine till I updated my flutter and Android Studio. Now when I build the project it fails. I ran ./gradlew :app:assembleDebug --stacktrace and ...
Asif Jafry's user avatar
0 votes
0 answers
289 views

Unable to build image with Gradle Docker Plugin's Palantir

I am unable to build a docker image using with Gradle Docker Plugin's Palantir using the ./gradlew docker command. It give the following error below. > Task :docker FAILED COPY failed: file not ...
Koh Yi Min Jason's user avatar
0 votes
0 answers
60 views

Gradlew can not find aws cli

I am using the following command in gralew to use the aws code artifact locally. "aws codeartifact get-authorization-token --domain myComany --domain-owner 49XXXXXXXXXX --query authorizationToken ...
Abu Saleh Musa's user avatar
0 votes
0 answers
11 views

Gradlew war creation not including env variables

I am developing a backend application in Kotlin with Ktor and using Intellij. When deploying it, I use ./gradlew war to create a war file. Until now, this worked perfectly until we moved some secret ...
Bianca Ilea's user avatar
0 votes
0 answers
22 views

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 ...
tamizh ezhil's user avatar
0 votes
0 answers
170 views

How to load dependencies from a local file system for gradle?

I'd like to load gradle and dependencies from a local file system. I'm using Gradle 5.5 and it is local file. My "plugins" section, from build.gradle.kts file is: plugins { id ("...
D.J.'s user avatar
  • 1
1 vote
1 answer
187 views

build gradle wrapper failed, why?

I study programming and watch a lecture where my prof says in order to produce gradle wrapper I have to type "gradle wrapper" in terminal. I have mac and when I type in I get an error: user-...
Tila tila's user avatar
0 votes
0 answers
35 views

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 ...
Julia Pak's user avatar
  • 515
1 vote
2 answers
3k views

[node, @react-native-community\cli\build\bin.js, config]` finished with an exception. Error message: groovy.json.JsonException

Description Previously I wanted to continue to finish my React Native Android application, but after running it, an error like this has never happened before: Error Details FAILURE: Build failed with ...
Rafi's user avatar
  • 11
0 votes
1 answer
200 views

Gradle - custom task which runs multiple tasks in sequence

I need to create gradle task which will be executing another 4 tasks (from plugins) in sequence - one by one task dailyTask (type: GradleBuild, dependsOn: ['lint', 'ktfmtCheck', 'testDebugUnitTest', '...
Doublementi's user avatar
1 vote
1 answer
55 views

Exception in build with proguard

I have a fat jar whcih include my package as well as all the dependencies. To obfuscate the jar ,I have addded proguard this is my gradle taks def dependsDir = "${buildDir}/libs/dependencies/&...
Vikas Kumar's user avatar
0 votes
1 answer
95 views

libGDX - Failed to notify project evaluation listener

When trying to build my libGDX game for HTML, or running :superDev I get this error : Configure project :html GWT version is < 2.5 -> additional dependencies are not added. Deprecated Gradle ...
Noah Crosby's user avatar
0 votes
0 answers
470 views

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 ...
Beronicous's user avatar
0 votes
2 answers
185 views

Aggregating multiple gradle java project test results without using the "reportOn" method

We have a multiple gradle java project. This project exports aggregated test report when "gradlew testReport" command executes. We use "reportOn" method but this method is ...
SNGTO's user avatar
  • 1
0 votes
0 answers
92 views

Execution failed for task ':react-native-async-storage_async-storage:verifyReleaseResources'

I delete .gradle folder in drive C then don't give apk. while "gradlew assembleRelease" give me this error While with this command "npx react-native run android", the object maker ...
rezaabaskhanian's user avatar
0 votes
0 answers
267 views

AAPT2 error when building an Android app using gradle on Termux

I installed Android SDK in Termux. I've got a simple project. I got it to compile manually using these instructions, so I proceeded with adding a contact picker using this tutorial, which uses ...
Innovations Anonymous's user avatar
1 vote
0 answers
159 views

REACT-NATIVE Task :expo-modules-core:externalNativeBuildCleanRelease FAILED

I am a newbie to React Native. I was trying to build an APK in my project. I was successfully able to make APKs before in the current project. But recently I started getting the following error. I ...
ARC's user avatar
  • 11
0 votes
1 answer
33 views

./gradlew signingReport from macos terminal

I'm trying to get a SHA1 certificate but I keep getting this error: FAILURE: Build failed with an exception. * What went wrong: Task 'signingReport' not found in root project 'juliapak' and its ...
Julia Pak's user avatar
  • 515
0 votes
0 answers
15 views

classpath configurations.runtimeClasspath and rootSpec.Include

I am trying to generate multiple war file in same Project. one is main war and subPrj war where i tried add all dependencies from main war to subPrj war. I am trying to achieve it via following code. ...
Jordan's user avatar
  • 193
1 vote
0 answers
49 views

custom gradle download task with Basic Authorisation fails

In our Jenkins pipeline, we use some gradle scripts. The current script, performs a rest API call and collects the response to a json file. Jenkins : node('windows_node') { def gitlabTokenList = ...
RCB's user avatar
  • 481
1 vote
1 answer
486 views

Gradle error java.lang.UnsupportedOperationException: null with Fabric MC 1.19.4

I am attempting to port the Minecraft mod Colormatic to 1.19.4, as the developer has not made any changes for ~4 months. The compilation worked when I had Gradle 7.3, but I have updated it to Gradle 8....
Omay's user avatar
  • 33
1 vote
1 answer
122 views

Get gradle dependencies programmatically

I want to get the dependencies programmatically within Gradle in an Android project. I tried (in both project as well as module level gradle.build): task dumpDependencies { doLast { def ...
rysv's user avatar
  • 2,566
0 votes
1 answer
71 views

How to handle common methods in Multi Module Scala Gradle project

I have written a scala project by using Gradle as build tool with below folder structure Root Dir |->settings.gradle |->data | |->common | | |->config.scala | | ...
Shan's user avatar
  • 31

1
2 3 4 5
25