I'm working on a React Native project and trying to build it using Gradle.
When I run this command from my Android folder:
vigne@IVA-INSURANCE MINGW64 /e/Fazil/finusermobile/android (dev) $ ./gradlew.bat build --stacktrace
Gradle fails with this error: Directory 'C:\Hugo\finhugo' does not contain a Gradle build. A Gradle build's root directory should contain one of the possible settings files...
However, my actual project path is: E:\Fazil\finusermobile\android
I already tried:
- Running
gradlew --stopandgradlew clean - Deleting
.gradlecaches - Checking for
GRADLE_USER_HOMEandGRADLE_HOMEenvironment variables - Searching my
settings.gradleandgradle.propertiesfor any reference toC:\Hugo\finhugo(none found)
But Gradle still searches for C:\Hugo\finhugo.
Why is Gradle trying to use C:\Hugo\finhugo?
Is there any global Gradle configuration or daemon cache that could force it to look there instead of the current directory?
How can I reset Gradle completely so it only builds from my current project path?
also if i try to force it search from this directory with this ./gradlew.bat tasks -p /e/Fazil/AwesomeProject/android
At the end of the output, I also get: "Command finished with non-zero exit value 1"
how can i resolve this?