skip to Main Content

I am facing react native Error resolving plugin [id: ‘com.facebook.react.settings’] error when i run react native then this error is come.

react-native version : 0.76.0,
java-version : 17,
error log:
FAILURE: Build failed with an exception.

  • Where:
    Settings file ‘D:tvos-exampleTVTestandroidsettings.gradle’ line: 2

  • What went wrong:
    Error resolving plugin [id: ‘com.facebook.react.settings’]

java.io.UncheckedIOException: Could not move temporary workspace (D:tvos-exampleTVTestandroid.gradle8.10.2dependencies-accessors569c8b261a8a714d7731d5f568e0e5c05babae10-12801969-005d-4b2e-ae5f-74c556171c50) to immutable location (D:tvos-exampleTVTestandroid.gradle8.10.2dependencies-accessors569c8b261a8a714d7731d5f568e0e5c05babae10)

  • 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.
Get more help at https://help.gradle.org.

BUILD FAILED in 3s
info Run CLI with –verbose flag for more details.

I try lot of things like remove gradle cache file and remove node modules and stuff like that but i can not found any solution. Guys please help me to out this situation.

2

Answers


  1. You encounter the error:

    Error resolving plugin [id: ‘com.facebook.react.settings’]

    After creating a new React Native project, follow these steps:

    • Install dependencies:

      npm install

    • Navigate to the Android folder:

      cd android

    • Clean the Android build cache:

    ./gradlew clean

    • Return to the root directory:

    cd ..

    • Build and run the app:

    npx react-native run-android

    However, despite the error message, your application should still build and run successfully on your device or emulator. The issue seems to be related to a default cache problem in React Native. Running the above steps resolves it.

    This worked for me, and I hope it works for you too! 😊

    Login or Signup to reply.
  2. Please downgrade react-native version and try again.

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