-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[0.75.x/0.76.x] Failing to build on Windows - Could not move temporary workspace - Error resolving plugin [id: 'com.facebook.react.settings'] - java.io.UncheckedIOException #46210
Comments
This comment was marked as duplicate.
This comment was marked as duplicate.
I've found a trick though. hit |
this is working for me also |
+1 ,I tried switching different gradle versions but it didn't work. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Roll back versions: 0.75.2 to 0.75.1 @react-native/gradle-plugin *Don't run npm/yarn fix, it updates without permission and becomes incompatible |
Don't work for me 😭 |
This comment was marked as off-topic.
This comment was marked as off-topic.
None of the proposed solutions seem to be working.
It always gets stuck at the same spot with the same error. |
@Agent009 may be downgrade a version not on the same app but create a completely new project using |
Downgrading to RN |
@Agent009 I use it on real actual device and I face the same issue. I don't know. Nobody seems to be working on it. And I don't know react native enough to work on it. I don't know how to direct contributers to this issue. |
|
|
Transferred to |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This works for me #46046 (comment) |
i was facing the same issue what i just did to solve is |
Due to a various of random comments, it's extremely hard for us to understand what happened here. Please refrain from commenting "same issue" as that creates only unnecessary noise As far as I understood:
If that is NOT the case for you -> Open another issue and do not comment here. I've sharing some steps that could (hopefully help till we try to identify what's the issue):
$ yarn why @react-native/gradle-plugin
├─ react-native@npm:0.75.1
│ └─ @react-native/gradle-plugin@npm:0.75.1 (via npm:0.75.1)
│
└─ react-native@npm:0.75.1 [473c9]
└─ @react-native/gradle-plugin@npm:0.75.1 (via npm:0.75.1)
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Please report back if this solves the issue @Agent009 |
(Related to gradle/gradle#27844) |
Just a heads up that Gradle 8.11.1 got released which should mitigate this issue. If you're having this problem could you try to upgrade Gradle version with:
After that, can you report back if the issue persists? |
After spending many hours on debugging a lot of different stuff, I can confirm that this solved the problem for me. Thank you @cortinico |
I just restarted vscode and it seems to have fixed it |
|
@nhatduong-agilityio have you run |
@cipolleschi I have handled the problem. I install more gradle-plugin then delete package lock, delete node_module, then yarn install again, and run command ./gradlew clean before run react-native android. Thanks |
Work for me |
This error occurred when i was using |
the weird thing is ,after all unworking solution out there
|
I Found a solution. I'm using RN CLI: 0.76.5
This is working consistently for me. |
just delete node_modules folder = > npm install => npm start -- --reset-cache => npm run android => done |
this works for me Thanks |
Closing as React Native 0.76.6 was released which contains a bump of Gradle to 8.11.1 which solves this issue for good. |
I did this but it still gives me this error.
|
I installed 0.76.6 today but the issue is still there |
Updating to |
I have 3 different projects with expo and I've been having a lot of similar problems lately, I've used 0.76.6, 0.75.2, 0.74... I've tried so many things and I'd would always have some problem, either this one, related to cache, sometimes it would work, the other day with the same config it would not. I've managed to get it working by taking a look at /android/gradle/gradle-wrapper.properties, on the variable distributionUrl you have the gradle version. Go to https://docs.gradle.org/current/userguide/compatibility.html and take a look at the compatible java version, mine was 8.10.2, so I needed java 23, which I installed: Now its working with just yarn android, without having to gradlew clean or even assemble as I have been doing a couple days ago. Don't forget to restart the terminal once you change the java version. This could work for someone else, because yesterday I tried the same thing and it did not work for some strange reason. The version of react-native that people are saying 0.76.6 that has an update, did not work for me, so just give this a shot. My dependencies versions, I'm also using yarn btw, not npm: "@expo/config-plugins": "^9.0.14", |
For me moving the entire project to D:\ fixed it |
My build gave out many different errors on an empty project jdk-20 |
For others experiencing the issue for fresh-latest builds, check the gradle wrapper version under 'distributionUrl' in "./_MyApp/android/gradle/wrapper/gradle-wrapper.properties". Here my* gradle version was 8.10.2 via fresh RN0.77 install, (this was not working for me, through npm install/start/run) Also for noteworthy: pnpm run will give the same error with the updated gradlew, so using yarn at the moment. |
I try all the ways about "com.facebook.react.settings" and think this is the only way to solve it. |
I was also facing the same problem. My react-native version was 0.75.13. I upgraded it to react-native version 0.77.0 and resolved my issue. Steps:
and my problem was solved |
Thank you @ikarofelix ! The solution for me ended up being just updating to JDK 23 like you mentioned. I am on Gradle 8.10.2 and React Native 0.74.7 |
IMPORTANT: The latest official update on this issue is here #46210 (comment)
This is the full error. The command I've used to create the project is

npx @react-native-community/cli init TodoApp2 --directory ./native-cli-todo-app-2
. The projects is created successfully. After I runnpm run start
and hita
, for android, build fails showing the above error. Another project which uses 0.74.3 is working just fine. Creating new project automatically uses 0.75.2 version which is fine, but it shows the error while building because of which development server doesn't start.The text was updated successfully, but these errors were encountered: