-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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) |
Hi @Sathvik-Rao |
Hi, |
I've tried all the permutations of the "fixes" posted so far, clearing all the necessary folders before doing so on each iteration, and none of them have resolved the issue for me. It should be noted that I'm having issues with an existing project. A lot of the "fixes" seem to be for newly initiated projects. |
Small update: I've been discussing with engineers on Gradle to attempt to mitigate this issue happening on Windows machines:
I will share more updates or workarounds as soon as we have them. |
I had the same issue. What I did is just just delete the ".gradle" folder under the android folder. Then, run "npm run android" and it started building. |
Do you have react-native installed? The new "Get Started Without a Framework" from React-Native's website asks you to uninstall previous react-native versions, but then never gives you the command to install anything back. If you are just following the commands written you might fail to do so. https://reactnative.dev/docs/getting-started-without-a-framework |
For React Native 0.75.3, Please try :
make sure you're connected to internet |
Thanks, it worked for me |
This also worked for me, but with a small fix: downgrading Gradle from 8.6 to 8.5. android/gradle/wrapper/gradle-wrapper.properties |
Using |
Yeah it did the trick for me also 👍 |
close windows defender |
Hi guys, as @cortinico stated, Windows Defender might be causing the issue. To @cortinico, I think RN should ask user to ignore project build from Windows Defenders when we run Good luck! |
As I shared in my previous comment, we're waiting for a fix from Gradle to this matter. It's true that disabling Windows Defender and other antivirus are likely to reduce this issue, due to how file locking works on Windows. Anyway we won't be officially recommending it as it exposes your system to security issues. |
thankyou so much brother because of you i was able to solve this error. I am so greatfull |
run
and then rebuild. That saved my lifetime |
This comment was marked as off-topic.
This comment was marked as off-topic.
It worked for me |
I used npx @react-native-community/cli@latest init MyApp command to create native app , then i encountered an error while building npx react-native run-android this command , before running this clean gradle build ./gradlew clean , distributionUrl=https://services.gradle.org/distributions/gradle-8.7-all.zip |
This one worked for me. Thanks |
it worked for me by yarn |
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: