skip to Main Content

I am working on a react native app and trying to upgrade the react native version. However, I am facing the issue:

could not find com.facebook.react:flipper-integration

Please let me know if you have any idea. Thank you!

2

Answers


  1. Chosen as BEST ANSWER

    After researching about the issue. I found that Facebook removes com.facebook.react:flipper-integration.

    Therefore, we should also remove these lines:

    • From app/build.gradle

    implementation("com.facebook.react:flipper-integration")

    • From MainApplication

    import com.facebook.react.flipper.ReactNativeFlipper

    ReactNativeFlipper.initializeFlipper(this, reactNativeHost.reactInstanceManager)

    • Clean and rebuild the project

  2. please follow these steps and let me know its result.

    • Ensure that your android/app/build.gradle file includes the correct Flipper dependencies. It should look something like this:
    debugImplementation 'com.facebook.flipper:flipper:0.93.0' // Use the latest version
    debugImplementation 'com.facebook.flipper:flipper-network-plugin:0.93.0'
    debugImplementation 'com.facebook.flipper:flipper-fresco-plugin:0.93.0'
    
    • If you are using a newer version of React Native, make sure your Gradle version is compatible. Update the gradle-wrapper.properties file if needed:
    distributionUrl=https://services.gradle.org/distributions/gradle-7.0-bin.zip
    
    • Sometimes, Gradle caches can cause issues. Run the following commands to clear the cache:
    cd android
    ./gradlew clean
    

    -Ensure there are no typos in your dependency declarations.

    • If the issue persists, try deleting your node_modules folder and reinstalling:
    rm -rf node_modules
    npm install
    

    I hope it’ll be helpful to solve your problem.

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