Fix: React Native Error : UncheckedIOException: Could not move temporary workspace

Error trace: Could not move temporary workspace

to immutable location (D:\android.gradle\8.6\dependencies-accessors\...)

Reason for the error:

The above error is related to the Android Gradle build process in your React Native project. The error message indicates that there was an issue moving a temporary workspace to an immutable location.


The first thing that you should try is to clean and rebuild your project.

cd android
gradlew clean
gradlew assembleRelease

If that does not work you can try to update your gradle.

If not working again, it may be an issue with the Gradle version you are using, just change your Gradle from 8.6 to 8.5 and check if that works.

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap