4

I am trying to run project with command,

npx react-native run-android

and found this as an error: FAILURE: Build failed with an exception.

  • Where: Build file 'C:\Users\Documents\project\project_Workspace\projectname\node_modules\react-native-reanimated\android\build.gradle' line: 69

  • What went wrong: A problem occurred configuring project ':react-native-reanimated'.

java.io.IOException: The filename, directory name, or volume label syntax is incorrect

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 33s stuck to resolve this error. Help me to resolve this error.

1

4 Answers 4

3

this problem happened in windows because of slashes

in your project folder navigate to android and open local.properties file

replace

sdk.dir=C:\Users\\<userName>\AppData\Local\Android\Sdk

with

sdk.dir=C:\\Users\\<userName>\\AppData\\Local\\Android\\Sdk

and it will work correctly

Sign up to request clarification or add additional context in comments.

Comments

0

Try to use this version

"react-native-reanimated": "2.0.0-rc.3"

It's worked to me.

Comments

0

For me, updating to [email protected] fixed my compile error I am using react-native 0.69.3.

Comments

0

As mention earlier this work

sdk.dir=C:\\Users\\<userName>\\AppData\\Local\\Android\\Sdk

Comments

Your Answer

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.