Skip to content

Gradle task dependency issues #5629

@ansman

Description

@ansman

This is a re-open of #5083 as the issue is still happening

@argzdev @mrober Still reproduce in 2.9.7

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':app:generateCrashlyticsSymbolFileRelease' (type 'GenerateSymbolFileTask').
  - Gradle detected a problem with the following location: '/home/vsts/work/1/s/app/build/intermediates/merged_native_libs/release/out/lib'.
    
    Reason: Task ':app:generateCrashlyticsSymbolFileRelease' uses this output of task ':app:mergeReleaseNativeLibs' 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 ':app:mergeReleaseNativeLibs' as an input of ':app:generateCrashlyticsSymbolFileRelease'.
      2. Declare an explicit dependency on ':app:mergeReleaseNativeLibs' from ':app:generateCrashlyticsSymbolFileRelease' using Task#dependsOn.
      3. Declare an explicit dependency on ':app:mergeReleaseNativeLibs' from ':app:generateCrashlyticsSymbolFileRelease' using Task#mustRunAfter.
    
    For more information, please refer to https://docs.gradle.org/8.2.1/userguide/validation_problems.html#implicit_dependency in the Gradle documentation.

Originally posted by @egorikftp in #5083 (comment)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions