Closed amir-ibrahim closed 5 months ago
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: https://github.com/react-native-community/discussions-and-proposals/pull/641
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.
what can i do ? i cannot understand it
i have this error in react native latest version
how to resolve this issue?
how to resolve this issue?
i also dont know
@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")
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)
@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
for me it's caused by @types/react-native-htmlview, I removed this one and then I can build normally
Could not find com.facebook.react:flipper-integration:.
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Possible solution:
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 )