Skip to content

Issue with react-native-hms-location in React Native 0.77.0 #361

Open
@teracityyazilim

Description

@teracityyazilim

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:

    1. Declare task ':hmscore_react-native-hms-location:generateDebugResValues' as an input of ':react-native-hms-location:packageDebugResources'.

    2. Declare an explicit dependency on ':hmscore_react-native-hms-location:generateDebugResValues' from ':react-native-hms-location:packageDebugResources' using Task#dependsOn.

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

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