Questions tagged [gradlew]
gradlew is an executable file created by the gradle wrapper plugin, to replace the normal gradle executable for a project
1,161
questions
0
votes
0
answers
16
views
Failed to create MD5 hash for file content
Out of nowhere gradle started to fail for a specific project of mine, with the current error:
\`\* What went wrong:
There was a failure while populating the build operation queue: Failed to create MD5 ...
0
votes
1
answer
33
views
Using a spring-beans .xml file (in 'resources' folder) from a shared module with gradle multi module (subproject)
(To assist with this question, I have github links at the bottom of this question)
I have (and am "starting with" the below gradle multiple module/project)
settings.gradle
rootProject.name ...
0
votes
0
answers
33
views
Can I change the location of the .gradle directory?
The first time you trigger a gradle task using gradle wrapper, it will create a .gradle folder in which a gradle distribution gets unzipped.
Is there a way to change the location of that .gradle ...
0
votes
0
answers
25
views
Why do I have to type ./ before gradlew in others' terminals and not in command prompt (Windows) when I run Spring Boot? [duplicate]
I just started learning Spring Boot and I noticed that when I need to build Spring Boot project with Gradle in other terminal (I've tried this command in git bash and IntelliJIDEA's terminal) than ...
1
vote
0
answers
17
views
Failed to load Analytics native module. Android. React native
I have problem with Android release build.On first launch my application crashes with com.facebook.react.common.JavascriptException: Error: Failed to load Analytics native module. FATAL EXCEPTION: ...
0
votes
1
answer
26
views
Unable to load script - "index.android.bundle" packaging error on production release
I have a new and very fustrating issue with our React Native Android app after performing some basic updates, I have googled and SO'd this error for a few days now and gotten no where, although im ...
0
votes
0
answers
22
views
Getting filenotfoundexception error since my application is looking for application.properties in gradle home instead of project directory
When i run a java application with gradle task using a gradle wrapper, it wasn’t able to load the app.property file, when i checked the path of the file it’s not looking good.
I'm seeing it as /Users/...
0
votes
0
answers
24
views
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.SharedNameTable$NameImpl)
same question, but exec gradlew clean assemble in terminal still throw error.
java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util....
0
votes
1
answer
32
views
gradlew will not sign a debug build
I am working on a CICD pipeline for a React Native Android mobile application using AWS Code Build and Code Pipeline.
When build a debug bundle (./gradlew bundleDebug) the resulting .aab file is not ...
0
votes
0
answers
20
views
Why some tasks in Gradle Signing Report use different paths to keystore file?
I use React Native on Windows, and when i want to know SHA fingerprints with command ./gradlew signingReport in folder android, in some tasks i see SHA from different files.
Why it happens? Shouldn't ...
0
votes
1
answer
28
views
Passing arguments to a dependent task in gradle
When I run ./gradlew bootRun, I'd like for the npmInstall task that it depends on to run with the "--force" or "--legacy-peer-deps" arguments.
I tried using ./gradlew bootRun ...
1
vote
0
answers
80
views
Deploy React Native Expo for Android: error Execution failed for task ':app:bundleReleaseJsAndAssets'
Trying to deploy my react native project, got as far as putting eas build --platform android in the terminal and got this error
[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task ...
1
vote
0
answers
105
views
Issue building app after upgrading from RN 0.68 to 0.70
In the process of upgrading my app from RN v0.68 to RN v0.70 , I ran the npx react-native upgrade command and then start following this guide to finish things up and now my builds start failing after ...
0
votes
0
answers
33
views
I am facing a problem while importing and build base project in eclipse for castle enviroment
I found a problem while importing project in castle eclipse enviroment
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':...
0
votes
0
answers
7
views
Facing an error for @klarna/react-native-vector-drawable
FAILURE: Build failed with an exception.
What went wrong:
A problem occurred configuring project ':@klarna/react-native-vector-drawable'.
The project name '@klarna/react-native-vector-drawable' must ...
0
votes
1
answer
253
views
gradlew exited with non-zero code: 1 in viro react
I followed every steps from this documentation. But when I run the expo app following errors showed up.
I am suffering from this problem since 1 week. Please Help.
0
votes
0
answers
31
views
R8: Type com.facebook.fbreact.specs.NativeAccessibilityManagerSpec is defined multiple times
ERROR:C:\Users\user.gradle\caches\transforms-3\24d11a768227ded42c3db1fd43c69ff3\transformed\jetified-react-native-0.70.5-release-runtime.jar: R8: Type com.facebook.fbreact.specs....
0
votes
0
answers
60
views
ow to fix: Could not compile build file (gradle) in Dolphin Android studio error
Good day to you. I am new to programming and have a desire to learn. I recently downloaded Dolphin Android studio and i am struggling to get the gradle to sync successfully. i have attached pictures ...
0
votes
0
answers
18
views
in my flutter app gradlew not giving signingReports what is reason after putting all the dependencies
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.android.internal.application'.
You can try some of the following options:
- changing ...
0
votes
1
answer
46
views
Why keeps deployment to Appstore connect failing because of "Asset validation failed (90035)" with Flutter
This is the exact error message:
Asset validation failed (90035)
Invalid Signature. Code object is not signed at all. The file at path [Runner.app/Frameworks/App.framework/flutter_assets/android/...
1
vote
0
answers
19
views
Expo Project fails to build on android due to an IOS specific feature that is programmatically removed for android devices
The package in question is
react-native-peripheral
and per there documentation. it only supports IOS. I'd still like the rest of the application to work on android devices, since that feature is only ...
0
votes
1
answer
73
views
Unable to build a Fat Jar via Gradle
When I try to connect API keys to a given app, the app crashes and I get the following error:
java.lang.reflect.InaccessibleObjectException: Unable to make field private static volatile java.net....
0
votes
1
answer
71
views
compileKotlin task says "Java source root points to a non-existent location"
I'm getting this error when I compile my project on Windows under gradle. This is the first three lines of the error:
> Task :core:compileKotlin FAILED
w: Java source root points to a non-existent ...
3
votes
0
answers
171
views
autolinking.gradle does not exist error when excuting expo run:android
I'm trying to run my android expo project on android by executing expo run:android
and i'm getting this error
this is my settings.gradle file
rootProject.name = 'K53Learners'
apply from: new File([&...
0
votes
1
answer
30
views
How to refer a method from a different file in gradle
The only thing I know we can do is have build.gradle and have the following defined at the top for example to reference from other .gradle files
apply from: 'common-methods.gradle'
But I want to do ...
0
votes
0
answers
18
views
GitHub Actions ./gradlew build job succeed but does not create build directory
I am trying to make CI process with GitHub Actions for Android project. Before making a real process, the goal is to build gradle and debug apk file automatically.
The job succeed for each step, ...
0
votes
0
answers
41
views
Error "Plugin with id 'com.android.application' not found."
I'm using Gradle version 7.0.2 for Android Development.
When I want to sync my Android project, it always gives this error:
* What went wrong:
A problem occurred evaluating project ':app'.
> Plugin ...
0
votes
1
answer
28
views
Is it possible to make gradlew to work with nexus?
I have a build machine for Android app. This machine has no access to the Internet.
There is a local nexus repository. Application gradle set up to load dependencies from this nexus repository and it ...
0
votes
0
answers
67
views
Running gradle commands fail with javax.annotation does not exist
Running tests and building from Intelij works fine. But, when I try to build or test an application from the command line I'm getting this error
error: package javax.annotation does not exist
@javax....
2
votes
0
answers
107
views
flutter app stuck on "Running Gradle task 'assembleDebug'..." forever
when i run the app, it gets stuck forever.
I've been working on this project for about 6 months, I have never had a problem with gradle
has anyone ever experienced something similar?
here is the ...
1
vote
1
answer
112
views
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileTestGroovy'
When I try to run my unit Test, I get:
> Configure project :app
nexus.gradle/NexusRepositoryPlugin: MavenRepo con la https://repo.maven.apache.org/maven2/ es removido, porque no es parte de los ...
0
votes
0
answers
86
views
How build projects separately in Gradle multi-module project
I am developing the Gradle multi-module project with Micronaut. It has below structure:
MainProject
core
src
build.gradle
settings.gradle
gradlew
other stuff..
lambda
src
build.gradle
settings....
0
votes
0
answers
124
views
Gradle Task has not declared any outputs despite executing actions
i use gradle-wrapper and have Gradle 6.8 installed.
Succesfull Runs:
bash gradlew check
bash gradlew test
Failed Runs:
`
Task :findMainClass FAILED
Caching disabled for task ':findMainClass' because:
...
2
votes
1
answer
135
views
React Native Android build failing with 'compileDebugJavaWithJavac' on several packages
I've been working in the same React Native project for months and recently the Android build has started failing. To my knowledge I haven't changed anything about my development environment and I ...
0
votes
2
answers
31
views
Finding a complete repository for Gradle Dependencies
I'm using Gradle version 7.0.2 in Android Studio. My project needs classpath 'com.android.tools.build:gradle:7.0.2' in build.gradle file.
So Gradle must download the gradle-7.0.2.pom, but it can't ...
0
votes
0
answers
28
views
Android Pipeline - need help in selecting specific test scripts when building test app
In the pipeline script using below command to generate test app
sh('./gradlew assembleDebugAndroidTest')
As I understand this will
assembleDebugAndroidTest - Assembles the android (on device) tests ...
2
votes
1
answer
35
views
How to encrypt MarkLogic server access credentials in gradle properties file
I am using storing MarkLogic access credentials in gradle.properties file as a plain text and it used while running Harmonization/ingestion/Corb jobs. As i am adding the credentials in the properties ...
0
votes
1
answer
59
views
React native gradlew clean failed
1 configuration failure
A problem occurred configuring project ':app'.
Illegal character in authority at index 7: file://C:\Users\jains\OneDrive\Desktop[PROJECT-NAME]\node_modules\react-native/...
1
vote
0
answers
193
views
compileSdkVersion is not specified. Please add it to build.gradle. Error while generating SSH key
I'm trying to generate SSH key using ./gradlew signingReport for react native app, but it keeps on giving two error. "compileSdkVersion is not specified. Please add it to build.gradl" and &...
0
votes
0
answers
50
views
Gradle proxy GitLab CI/CD
I would like to run this project in GitLab CI/CD, but when i try to run gradlew, i get this error:
I guess the problem is the company proxy, which blocks the requests. Therefore i tried to use the ...
0
votes
0
answers
82
views
Gradle - Chaining test tasks with `--tests` filter
I have been at this for a few days now, let's say I have a build.gradle as follows:
ext.createRunIntegrationTestsTask = { String taskName , String buildPlatform ->
return project.tasks.create(...
0
votes
0
answers
19
views
project can`t find gradle wrapper
PLEASE HELP((( I keep getting this error for 10000years now. Google says its because of gradle-wrapper.jar is missing, but here it is at my project.
What should I do?Where in the windows directory ...
0
votes
0
answers
25
views
Execution failed for task ':react-native-community_async-storage:generateDebugRFile' [duplicate]
I'm trying to run react-native run-android or npx react-native run-android but receive the following error:
Things I've tried:
Reinstall node_modules
cd ./android and then ./gradlew clean
react-...
1
vote
0
answers
413
views
Expo EAS build failed because "plugin with id 'maven' not found" [react-native-google-nearby-messages]
I'm having trouble implementing the react-native-google-nearby-messages package, which contains native code, in expo.
In fact, the command eas build --profile development --platform android fails ...
2
votes
1
answer
581
views
IconImageInfo is not abstract and does not override abstract method getExtras() in HasImageMetadata
I am facing this error while trying to run the project from android studio.
Error:
IconImageInfo is not abstract and does not override abstract method getExtras() in HasImageMetadata
private static ...
0
votes
0
answers
45
views
The project is not a gradle based project
This is a continuation of the following question I asked and could be directly linked to it
Java.lang.classnotfoundexception: org.gradle.cli.commandlineparser
Upon inspection, I found out the ...
0
votes
1
answer
19
views
Intershop | dB migrate
"Address already in use" This is the error which I get while doing dbmigration, I have written the AddService and Addconfiguration properties file now wanted to do dbmigration and getting ...
0
votes
0
answers
80
views
Gradle project build error. I am trying to build an old project using gradle 4.10.2 and java 1.8
org.gradle.tooling.GradleConnectionException: Could not fetch model of type 'GradleBuild' using connection to Gradle installation 'C:\gradle-4.10.2'.
at org.gradle.tooling.internal.consumer....
0
votes
1
answer
117
views
Could not get unknown property 'compile' for configuration container
Need Help: I'm trying to upgrade the gradle version to 7.4.2 but seeing the following error
What went wrong:
A problem occurred evaluating root project 'service'.
Could not get unknown property '...
0
votes
1
answer
54
views
How to set environment variable for gradle wrapper command in gitlab CI?
./gradlew -i dev_task -Pdb_user=user1 -Pdb_pwd=pwd1
The above command works fine on windows and able to access environment variables, db_user and db_pwd, but not in gitlab CI when using the same ...