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

Android build error v0.73.9 [react-native-hms-availability] #358

Open
HwaKintNg opened this issue Oct 23, 2024 · 2 comments
Open

Android build error v0.73.9 [react-native-hms-availability] #358

HwaKintNg opened this issue Oct 23, 2024 · 2 comments

Comments

@HwaKintNg
Copy link

Description
Recently i updated my react-native project to run on React Native 0.73.9 and upgraded the gradle to 8.3 and i encounter error when i tried to run react-native run-android and the received the following error:

  • What went wrong:
    A problem was found with the configuration of task ':react-native-hms-availability:packageDebugResources' (type 'MergeResources').

    • Gradle detected a problem with the following location: '/x/x/x/x/node_modules/@hmscore/react-native-hms-availability/android/build/generated/res/resValues/debug'.

      Reason: Task ':react-native-hms-availability:packageDebugResources' uses this output of task ':hmscore_react-native-hms-availability:generateDebugResValues' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.

      Possible solutions:

      1. Declare task ':hmscore_react-native-hms-availability:generateDebugResValues' as an input of ':react-native-hms-availability:packageDebugResources'.
      2. Declare an explicit dependency on ':hmscore_react-native-hms-availability:generateDebugResValues' from ':react-native-hms-availability:packageDebugResources' using Task#dependsOn.
      3. Declare an explicit dependency on ':hmscore_react-native-hms-availability:generateDebugResValues' from ':react-native-hms-availability:packageDebugResources' using Task#mustRunAfter.

      For more information, please refer to https://docs.gradle.org/8.3/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

  • 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.

Expected behavior
Project compile and run normally

Current behavior
project failed to compile and run on simulator

Screenshots
Screenshot 2024-10-23 at 4 02 48 PM

Environment

  • Platform: React-Native
  • Kit Version
    "@hmscore/react-native-hms-availability": "6.12.0.301",
    "@hmscore/react-native-hms-push": "6.12.0.301",
  • OS Version: Android 14
  • Android Studio version (if applicable) [e.g. 4.1]
  • Platform version (if applicable)
  • Node Version: v20.13.1
  • Your Location/Region (if applicable)

Other
Add any other context about the problem here

@chernyshevdi
Copy link

  • same

@HwaKintNg Have you found a solution?

@HwaKintNg
Copy link
Author

  • same

@HwaKintNg Have you found a solution?

Unfortunately no. From what i found, apparently HMS SDK only support up to RN 0.72. Checked with their representative but no solution yet as of now.

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

No branches or pull requests

2 participants