skip to Main Content

I recently installed the React Native Community CLI and tried creating a new project. However, when running the project, I encountered the following error during the Gradle build process:

    info Installing the app...  

Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details  

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor  

FAILURE: Build failed with an exception.  

* Where:  
Settings file 'I:ProjectsMapAppandroidsettings.gradle' line: 2  

* What went wrong:  
Error resolving plugin [id: 'com.facebook.react.settings']  

> java.io.UncheckedIOException: Could not move temporary workspace (I:ProjectsMapAppandroid.gradle8.10.2dependencies-accessors...) to immutable location (I:ProjectsMapAppandroid.gradle8.10.2dependencies-accessors...)  

* Try:  
> Run with --stacktrace option to get the stack trace.  
> Run with --info or --debug option to get more log output.  
> Run with --scan to get full insights.  

BUILD FAILED in 40s  

info Run CLI with --verbose flag for more details.  

I have already been working on another React Native project, and it builds and runs without any issues.
This error appears only with the newly created project.
I have ensured that my development environment is set up correctly by running npx react-native doctor.

i have :
Verified that Java and Android SDK are installed correctly.
Cleared the .gradle cache using gradlew clean.
Restarted the system and reinstalled dependencies.

but still not working.

2

Answers


  1. I’m having same problem, but I figure out that inside the android folder delete .gradle
    this will fix the issue

    Login or Signup to reply.
  2. cd android
    ./gradlew clean
    ./gradlew –stop
    Then, go back to the root directory of your project and run:
    npx react-native run-android

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search