Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

"Could not find com.facebook.react:flipper-integration" error with new Android Studio and react native 0.73.7 #5586

Closed
amir-ibrahim opened this issue Apr 24, 2024 · 11 comments

Comments

@amir-ibrahim
Copy link

amir-ibrahim commented Apr 24, 2024

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

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.facebook.react:flipper-integration:.
Required by:
project :app

Possible solution:

  • Declare repository providing the artifact, see the documentation at
Screenshot 2024-04-24 at 12 41 49 PM

To Reproduce

new Android Studio and react native 0.73.7

Environment

React native 0.73.7 + Android Studio latest version ( Android Studio Iguana | 2023.2.1 Patch 2 )

@amir-ibrahim amir-ibrahim changed the title "Could not find com.facebook.react:flipper-integration" error with new Android Studio and react native 0.73.7 Could not find com.facebook.react:flipper-integration: error with new Android Studio and react native 0.73.7 Apr 24, 2024
@amir-ibrahim amir-ibrahim changed the title Could not find com.facebook.react:flipper-integration: error with new Android Studio and react native 0.73.7 "Could not find com.facebook.react:flipper-integration" error with new Android Studio and react native 0.73.7 Apr 24, 2024
@amir-ibrahim
Copy link
Author

thank God, so the issue was in the Flipper integration because they removed it from the React Native as the new version of RN 0.74.0 is launched for more info:
react-native-community/discussions-and-proposals#641

@SanaButt01
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not find com.facebook.react:flipper-integration:.
Required by:
project :app

  • 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 17s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. > Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. > Could not find com.facebook.react:flipper-integration:. Required by: project :app * 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 17s.
info Run CLI with --verbose flag for more details.

@SanaButt01
Copy link

what can i do ? i cannot understand it

@SanaButt01
Copy link

i have this error in react native latest version

@ashishAmz
Copy link

how to resolve this issue?

@SanaButt01
Copy link

how to resolve this issue?

i also dont know

@amir-ibrahim
Copy link
Author

@SanaButt01, @ashishAmz They removed the flipper from the new React Native 0.74, now you have to specify the flipper version when using it

android sample:
old:
implementation("com.facebook.react:flipper-integration")
new:
implementation("com.facebook.react:flipper-integration:0.73.7")

@ashishAmz
Copy link

Thanks @amir-ibrahim, that issue got resolved but now getting below issue,
Duplicate class com.facebook.react.flipper.ReactNativeFlipper found in modules jetified-flipper-integration-0.73-debug.7-debug-runtime (com.facebook.react:flipper-integration:0.73.7) and jetified-react-android-0.74-debug.1-debug-runtime (com.facebook.react:react-android:0.74.1)

@amir-ibrahim
Copy link
Author

amir-ibrahim commented May 28, 2024

@ashishAmz are you using RN 0.74 or 0.73.7?
if you are using 0.74 remove Flipper (deprecated)
if you are using 0.73.7 it should work also try to upgrade to 0.73.8
also Clean your build files

@khanhvohoangvib
Copy link

for me it's caused by @types/react-native-htmlview, I removed this one and then I can build normally

@Maksim-creator
Copy link

Maksim-creator commented Oct 7, 2024

If you just bump your expo version to 51.

Do: npx expo prebuild --clean before building Android build

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants