escodro
08/04/2023, 12:36 PMdebug
variant is working fine, however, the signed ones are throwing this error:
Reason: Task ':app:deobfuscationArtifactUploadTaskDev' uses this output of task ':app:writeDevAppMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed.
I tried following the documentation to make them explicit, but it seems like a rabbit hole where I need to add dozens of tasks manually, for each variant.
tasks.withType(DeobfuscationArtifactUploadTask).configureEach {
dependsOn("writeDevAppMetadata",
"mergeDevAssets",
"compileDevArtProfile",
"processApplicationManifestDevForBundle",
"compressDevAssets",
"l8DexDesugarLibDev",
"bundleDevResources",
"mergeDevJniLibFolders",
"mergeDevNativeLibs",
"collectDevDependencies",
"extractDevNativeSymbolTables",
...
)
}
Gradle Version - 8.2.1
Android Gradle Plugin - 8.0.2 or 8.1.0
Java version - 11 or 17
Has anyone else faced this issue?
Thank you in advance!Vampire
08/04/2023, 12:45 PMVampire
08/04/2023, 12:46 PMdependsOn
that does not have a lifecycle task on the left-hand side is a code smell.escodro
08/04/2023, 12:55 PMVampire
08/04/2023, 12:56 PMVampire
08/04/2023, 12:57 PMescodro
08/04/2023, 3:32 PM