Skip to content

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

Open
@HwaKintNg

Description

@HwaKintNg

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions