Skip to content

0.76.3 initialising a new project using React-Native-CLI doesn't work. (Windows/Android) #834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3SCadmin opened this issue Nov 26, 2024 · 1 comment

Comments

@3SCadmin
Copy link

Proposal:
Make it possible to submit something like this as a bug.
To submit an official bug report, you have to provide a "Reproducer" link. That makes sense for specific coding issues... but what about general plumbing issues? In this case the default project crashes right out of the box. By the time I worked my way down the "bug report" to the reproducer requirement ... all I could do was swear at my monitor.

For what it's worth, here is the issue. Please fix this.

(Windows/Android)
Following the steps in the docs https://reactnative.dev/docs/getting-started-without-a-framework (0.76.3) results in this error:

FAILURE: Build failed with an exception.
* Where: Settings file 'C:\Users\admin\coding\RN_learning\ThisWillCrash\AwesomeProject\android\settings.gradle' line: 2
* What went wrong: Error resolving plugin [id: 'com.facebook.react.settings']> java.io.UncheckedIOException: Could not move temporary workspace (C:\Users\admin\coding\RN_learning\ThisWillCrash\AwesomeProject\android\.gradle\8.10.2\dependencies-accessors\569c8b261a8a714d7731d5f568e0e5c05babae10-3a2c5915-b0b3-4911-a5c4-1309dbd350d6) to immutable location (C:\Users\admin\coding\RN_learning\ThisWillCrash\AwesomeProject\android\.gradle\8.10.2\dependencies-accessors\569c8b261a8a714d7731d5f568e0e5c05babae10)

After several attempts, the solution that worked for me was :
cd android
./gradlew clean

Simple fix ...AFTER you figured it out.
Still, I think it's a big deal when step #1 sends you down a rabbit hole. If this had been my first experience with React Native, I probably would not have bothered trying to make it work.

@cortinico
Copy link
Member

Duplicate of facebook/react-native#46210

@cortinico cortinico marked this as a duplicate of facebook/react-native#46210 Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants