hms-react-native-plugin icon indicating copy to clipboard operation
hms-react-native-plugin copied to clipboard

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

Open HwaKintNg opened this issue 1 year ago • 3 comments

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

HwaKintNg avatar Oct 23 '24 08:10 HwaKintNg

  • same

@HwaKintNg Have you found a solution?

chernyshevdi avatar Dec 13 '24 09:12 chernyshevdi

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

HwaKintNg avatar Dec 13 '24 09:12 HwaKintNg

@HwaKintNg, have you found a solution for it? I want it on RN 0.73.6

hamza4213 avatar Oct 12 '25 06:10 hamza4213