-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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) |
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 |
I was with this problem when upgrading from 0.75.2 to 0.76.2, and none of these fixed for me, but I was able to fix with:
|
I have a better way, It seems to be caused by folder, |
Hi Team, I tried all possible ways to fix this based on above comments but unfortunately nothing worked ! cc- @cortinico |
nah issue exist in macos as well. m3 pro, sequoia 15.1 |
Mine is M1 pro, Sequoia 15.0 |
In my case, I stopped the "yarn start" command in terminal, and gradle sync again in Android Studio, the errors gone. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Summary: This should mitigate this particular issue we're seeing on Windows: - facebook#46210 Changelog: [Android] [Changed] - Gradle to 8.11.1 Differential Revision: D66600321
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 |
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: