Status Update
Comments
da...@google.com <da...@google.com>
pu...@gmail.com <pu...@gmail.com> #2
je...@google.com <je...@google.com>
pu...@gmail.com <pu...@gmail.com> #3
(reposting under work account)
We have been hitting this issue constantly. Is it possible to configure those tasks to be non cacheable as a workaround or is that only possible inside of AGP?
mi...@google.com <mi...@google.com> #4
Currently the only way to disable caching for dexing transforms is to patch AGP manually by providing a patched DexTransform.kt
file in buildSrc
. Please see
an...@google.com <an...@google.com> #5
Thanks. Ignoring potential build perf impacts, if we essentially commented out the processIncrementally
block in DexingTransform.kt
and always ran non-incrementally, would that workaround this issue?
an...@google.com <an...@google.com> #6
Yes, always run the dex transform non-incrementally is another workaround.
ya...@gmail.com <ya...@gmail.com>
j0...@gmail.com <j0...@gmail.com>
ha...@gmail.com <ha...@gmail.com> #7
ha...@gmail.com <ha...@gmail.com> #8
I guess so, could you give it a try?
ra...@gmail.com <ra...@gmail.com> #9
Anyway, what about issue, I've tried a lot of attempts to fix and helped only turn off jacoco transformation `useJacocoTransformInstrumentation = false`.
What was changed in agp 7.4.x from 7.3.1 that break this?
ma...@google.com <ma...@google.com> #10
Are you referring to
(Regarding What was changed in agp 7.4.x from 7.3.1 that break this?
: I don't know, my theory is that some of your code has changed too when updating AGP, which exposed the Jacoco bug. Please post your comments in that issue if you'd like to continue discussing this.)
mi...@google.com <mi...@google.com> #11
Edit: we were actually not applying the patch correctly, so this was user error.
We've been running with a patched version of DexingTransformer.kt for about a week but are still seeing the issue. First I tried commenting out @CacheableTransform
on DexingNoClasspathTransform
, but after devs were still experiencing the error, I tried reverting that change and instead applying what I'd suggested in
Is there any other workaround or additional information I can provide to help debug? At first I thought it's perhaps the patched version of DexingTransformer.kt
wasn't being picked up, but I confirmed that it was by throwing an exception inside of doTransform
.
Description
My Android project uses split APKs. That is, its
build.gradle
contain a section:I have used the new
Baseline profile generator
template to generate a baseline module. When I try to run it, it fails on APK installation (project names redacted):In short, it tries to install the APK of each architecture at once, instead of the APK for the architecture of the device it is being installed on. To workaround it I have to set
splits.abi.enable
tofalse
(or comment the wholesplit
block).There is an older bug report very close to it: https://issuetracker.google.com/issues/172423995