You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Auto-detected APK paths are wrong with multiple flavor dimensions or a custom outputFileName (0.21.0, AGP 9) #505
Human note: Apologies for an llm generated issue but I have proof-read it and verified it as far as I could
Since 0.21.0, findDebugAndInstrumentationApk (FladlePluginDelegate.kt) builds APK paths from AGP's default naming instead of reading the real output location (0.19.0 used ApkVariantOutput.outputFile). This produces non-existent paths in two cases:
Multiple flavor dimensions. Flavors are joined with / (flavorPath), but AGP uses the combined flavor name as a single directory.
Same for the test APK (androidTest/something/all/debug vs androidTest/somethingAll/debug).
Not visible with a single dimension (e.g. freeDebug), where both are free/debug.
Custom VariantOutput.outputFileName. The file name is always $archivesName[-$flavor][-$abi]-$buildType.apk, ignoring an output file name set via the Variant API:
Activity