Description
I am experiencing an issue when building my React Native application using @hmscore/react-native-hms-location (6.12.0-302). The build process fails with the following error:
A problem was found with the configuration of task ':react-native-hms-location:packageDebugResources' (type 'MergeResources').
-
Gradle detected a problem with the following location: 'D:\Litera\Yedek\BilimpMobilV4\node_modules@hmscore\react-native-hms-location\android\build\generated\res\resValues\debug'.
Reason: Task ':react-native-hms-location:packageDebugResources' uses this output of task ':hmscore_react-native-hms-location: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-location:generateDebugResValues' as an input of ':react-native-hms-location:packageDebugResources'.
-
Declare an explicit dependency on ':hmscore_react-native-hms-location:generateDebugResValues' from ':react-native-hms-location:packageDebugResources' using Task#dependsOn.
-
Declare an explicit dependency on ':hmscore_react-native-hms-location:generateDebugResValues' from ':react-native-hms-location:packageDebugResources' using Task#mustRunAfter.
React: 18.3.1
React Native: 0.77.0
HMS Location SDK: @hmscore/react-native-hms-location 6.12.0-302
Build Tools Version: 35.0.0
minSdkVersion: 24
compileSdkVersion: 35
targetSdkVersion: 34
ndkVersion: 27.1.12297006
kotlinVersion: 2.0.21 -
It appears that the packageDebugResources task is missing a dependency declaration on generateDebugResValues, which is causing a build issue due to task execution order.