Hello! 👋
I’m facing “implicit dependency” issues while migrating my app to Gradle 8. The
debug
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!