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

Build failing after upgrading react-native to 0.74.1 #44424

Closed
aledepaulaaa opened this issue May 6, 2024 · 3 comments
Closed

Build failing after upgrading react-native to 0.74.1 #44424

aledepaulaaa opened this issue May 6, 2024 · 3 comments
Labels
Resolution: Answered When the issue is resolved with a simple answer

Comments

@aledepaulaaa
Copy link

Description

info Opening app on Android...
info A dev server is already running for this project on port 8081.
info Launching emulator...
info Installing the app...

Task :gradle-plugin:checkKotlinGradlePluginConfigurationErrors
Task :gradle-plugin:compileKotlin UP-TO-DATE
Task :gradle-plugin:compileJava NO-SOURCE
Task :gradle-plugin:pluginDescriptors UP-TO-DATE
Task :gradle-plugin:processResources
Task :gradle-plugin:classes
Task :gradle-plugin:jar

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 3 executed, 2 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

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 15s
info Run CLI with --verbose flag for more details.

Steps to reproduce

1 . npm start
2 . a: run on Android

React Native Version

0.74.1

Affected Platforms

Runtime - Android

Output of npx react-native info

info Fetching system and libraries information...
(node:2760) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
System:
  OS: Windows 10 10.0.19045
  CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
  Memory: 3.98 GB / 15.96 GB
Binaries:
  Node:
    version: 22.0.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.19
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 9.8.1
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "29"
      - "33"
      - "34"
    Build Tools:
      - 33.0.1
      - 34.0.0
    System Images:
      - android-29 | Google Play Intel x86 Atom
      - android-TiramisuPrivacySandbox | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-233.14808.21.2331.11709847
  Visual Studio:
    - 17.6.33815.320 (Visual Studio Community 2022)
Languages:
  Java:
    version: 17.0.4.1
    path: /c/Program Files/Eclipse Adoptium/jdk-17.0.4.101-hotspot/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.3.1
    wanted: ^18.3.1
  react-native:
    installed: 0.74.1
    wanted: ^0.74.1
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

info Opening app on Android...
info A dev server is already running for this project on port 8081.
info Launching emulator...
info Installing the app...
> Task :gradle-plugin:checkKotlinGradlePluginConfigurationErrors
> Task :gradle-plugin:compileKotlin UP-TO-DATE
> Task :gradle-plugin:compileJava NO-SOURCE
> Task :gradle-plugin:pluginDescriptors UP-TO-DATE
> Task :gradle-plugin:processResources
> Task :gradle-plugin:classes
> Task :gradle-plugin:jar

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
5 actionable tasks: 3 executed, 2 up-to-date

Reproducer

https://github.com/aledepaulaaa/reactnative-failure

Screenshots and Videos

ERRO

@cortinico
Copy link
Contributor

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

You need to remove the flipper integration line from your build.gradle file:

Screenshot 2024-05-06 at 14 55 09

Here the link to the upgrade helper

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Triage 🔍 labels May 6, 2024
@aledepaulaaa
Copy link
Author

ok, I'll test it here, thanks @cortinico

@aledepaulaaa
Copy link
Author

Apparently, it seems to have worked, the other problem now seems to be with the minimum SDK that version 0.74.1 is requiring, which for the Android emulator is 23. I was using 21. I'll fix that 👍🏾

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
Projects
None yet
Development

No branches or pull requests

2 participants