Description
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:
- Declare task ':hmscore_react-native-hms-availability:generateDebugResValues' as an input of ':react-native-hms-availability:packageDebugResources'.
- Declare an explicit dependency on ':hmscore_react-native-hms-availability:generateDebugResValues' from ':react-native-hms-availability:packageDebugResources' using Task#dependsOn.
- 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
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