Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.facebook.react:flipper-integration which is missing the version number on v0.73.0 #41876

Closed
NorbertoStudios opened this issue Dec 10, 2023 · 12 comments
Labels
Resolution: Answered When the issue is resolved with a simple answer Type: Upgrade Issue Issues reported from upgrade issue form

Comments

@NorbertoStudios
Copy link

Old Version

0.72.6

New Version

0.73.0

Description

When building with yarn the project fails to build the android app due to the new com.facebook.react:flipper-integration
which is missing the version number

Steps to reproduce

yarn android
fails
[Could not determine the dependencies of task ':app:compileDebugJavaWithJavac']
Could not find com.facebook.react:flipper-integration:.

Affected Platforms

Runtime - Android, Build - MacOS

Output of npx react-native info

System:
  OS: macOS 14.0
  CPU: (8) arm64 Apple M1 Pro
  Memory: 106.16 MB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 21.2.0
    path: /opt/homebrew/bin/node
  Yarn:
    version: 1.22.19
    path: /opt/homebrew/bin/yarn
  npm:
    version: 10.2.3
    path: /opt/homebrew/bin/npm
  Watchman:
    version: 2023.11.20.00
    path: /opt/homebrew/bin/watchman
Managers:
  CocoaPods:
    version: 1.14.3
    path: /opt/homebrew/bin/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK:
    API Levels:
      - "29"
      - "30"
      - "33"
      - "34"
    Build Tools:
      - 30.0.3
      - 33.0.0
      - 33.0.1
      - 34.0.0
    System Images:
      - android-29 | Google APIs ARM 64 v8a
      - android-31 | Android TV ARM 64 v8a
      - android-33 | Google TV ARM 64 v8a
      - android-33 | Google APIs ARM 64 v8a
    Android NDK: Not Found
IDEs:
  Android Studio: 2023.1 AI-231.9392.1.2311.11076708
  Xcode:
    version: 15.0.1/15A507
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 19.0.1
    path: /usr/bin/javac
  Ruby:
    version: 2.6.10
    path: /usr/bin/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native: Not Found
  react-native-macos: Not Found
  react-native-tvos:
    installed: 0.73.0-0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: true
  newArchEnabled: false

Stacktrace or Logs

error Failed to install the app. Command failed with exit code 1: ./gradlew 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 4s.

Reproducer

https://github.com/react-native-community/reproducer-react-native

Screenshots and Videos

A fix is to add the version number to the android/app/build.gradle file
something like this
Line 110
implementation("com.facebook.react:flipper-integration:0.73.0")

@NorbertoStudios NorbertoStudios added Needs: Triage 🔍 Type: Upgrade Issue Issues reported from upgrade issue form labels Dec 10, 2023
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Dec 10, 2023
@cortinico
Copy link
Contributor

When building with yarn the project fails to build the android app due to the new com.facebook.react:flipper-integration which is missing the version number

The reproducer you linked (the official template) is building correctly:
https://github.com/react-native-community/reproducer-react-native/actions

The missing version number is intentional as it will be set for you by the framework so you don't have to update it every time

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Triage 🔍 Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Dec 11, 2023
@mjaggard
Copy link

mjaggard commented Apr 24, 2024

This has happened to me today too. It seems that com.facebook.react:flipper-integration has not been released to mavenCentral at version 0.74.0 and so the automatic version number calculation is wrong.

Incidentally manually putting 0.73.7 in manually also doesn't work because of a duplicate class so I've just commented out the line implementation("com.facebook.react:flipper-integration:0.73.7") in my build.gradle for now.

@cortinico
Copy link
Contributor

This has happened to me today too. It seems that com.facebook.react:flipper-integration has not been released to mavenCentral at version 0.74.0 and so the automatic version number calculation is wrong.

This is intentional as Flipper integration has been removed from React Native.
This is part of the deprecation cycle mentioned here:

@eisodev
Copy link

eisodev commented May 7, 2024

This has happened to me today too. It seems that com.facebook.react:flipper-integration has not been released to mavenCentral at version 0.74.0 and so the automatic version number calculation is wrong.

This is intentional as Flipper integration has been removed from React Native. This is part of the deprecation cycle mentioned here:

How will this affect users trying to stay on 0.73.7 to continue use Flipper for a while?

I get the following now after upgrade, tried deleting cache etc.

error Failed to install the app. Command failed with exit code 1: ./gradlew 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:

EDIT: I had react-native-gradle-plugin / @react-native/gradle-plugin in my package.json, from the RN blogposts from renaming. This should be removed from package.json as we shouldn't use Gradle as direct dependency like this.

@DeadlyEagle
Copy link

Anyone can solved this issue?

@Drizzy-hub
Copy link

:0.73.0

I am currently facing same issue and will only comment it out in the mean time as a solution

@Pamavoc
Copy link

Pamavoc commented May 16, 2024

What can we do to avoid this error at build step ? even by commenting the line in gradle.build, it's not working

@raphaelweis
Copy link

I had the same issue that started after upgrading our expo sdk. Deleting the android directory then regenerating it solved the issue.

@Khayo99
Copy link

Khayo99 commented Jun 4, 2024

Eu tive o mesmo problema que começou após atualizar nosso Expo SDK. Excluir o diretório Android e depois regenerá-lo resolveu o problema.

Obrigado mano, aqui só funcionou com a sua dica, após excluir a pasta android funcionou perfeitamente. Obrigado

@szhabolcs
Copy link

szhabolcs commented Jun 20, 2024

I had the same issue that started after upgrading our expo sdk. Deleting the android directory then regenerating it solved the issue.

Can confirm this works with upgrading from expo v50 to v51

Thank you 🙏

@khanhvohoangvib
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Answered When the issue is resolved with a simple answer Type: Upgrade Issue Issues reported from upgrade issue form
Projects
None yet
Development

No branches or pull requests