0

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 --stop and gradlew clean
  • Deleting .gradle caches
  • Checking for GRADLE_USER_HOME and GRADLE_HOME environment variables
  • Searching my settings.gradle and gradle.properties for any reference to C:\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?

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.