Status Update
Comments
ko...@google.com <ko...@google.com>
je...@google.com <je...@google.com>
lu...@google.com <lu...@google.com> #2
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
ni...@hinge.co <ni...@hinge.co> #3
lu...@google.com <lu...@google.com> #4
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
ni...@hinge.co <ni...@hinge.co> #5
ni...@hinge.co <ni...@hinge.co> #6
ni...@hinge.co <ni...@hinge.co> #7
ni...@hinge.co <ni...@hinge.co> #8
ga...@freeletics.com <ga...@freeletics.com> #9
ni...@hinge.co <ni...@hinge.co> #10
```
(15:58:11) C02W513SHTD8:files aso$ /opt/android-sdk-macosx/tools/bin/sdkmanager --version
26.1.1
(15:58:17) C02W513SHTD8:files aso$ /opt/android-sdk-macosx/tools/bin/sdkmanager --install --package_file=package_file
Warning: Unknown argument --package_file=package_file
```
lu...@google.com <lu...@google.com> #11
cm...@google.com <cm...@google.com> #12
za...@gmail.com <za...@gmail.com> #13
ga...@linecorp.com <ga...@linecorp.com> #14
an...@walmart.com <an...@walmart.com> #15
fr...@disneystreaming.com <fr...@disneystreaming.com> #16
Has anyone re-tried it?
We switched back to RUN sdkmanager --package_file=$ANDROID_HOME/packages.txt
in our Dockerfile back in March of 2021.
ga...@linecorp.com <ga...@linecorp.com> #17
For what it's worth, I did a quick test with the latest CLI: 11076708 (
./sdkmanager --sdk_root="../sdk" --package_file=deps.txt
Deps.txt:
platform-tools
extras;google;instantapps
build-tools;35.0.0-rc3
So perhaps this is now resolved? I haven't tried it with more packages
ga...@linecorp.com <ga...@linecorp.com> #18
In my case,
module A
and module B
have implementations of interface Xxx
which can be loaded by AutoService.
and MergeJavaResourcesTask
was failed of app C
while merge META-INF/services/Xxx
from module A
and module B
jf...@block.xyz <jf...@block.xyz> #19
I had previously applied the workaround from #10 to our build, however it caused packaging issues that manifested as runtime crashes. I'll be taking a second look at the workaround to see if I can fix our previous issues with it since we are starting to see this problem happen a lot more frequently. An issue with Anvil has been causing our developers to use --rerun
and --rerun-tasks
more frequently than usual, which masks the issue here. With the latest beta release of anvil, those options are no longer needed and this bug pops up a lot more frequently. We are using AGP 8.2.2 currently
za...@gmail.com <za...@gmail.com> #20
With the latest beta release of anvil, those options are no longer needed and this bug pops up a lot more frequently.
It doesn't seem like the latest beta has resolved these issues :/
cm...@google.com <cm...@google.com>
eg...@squareup.com <eg...@squareup.com> #21
Have been having the same issue in recent builds, rm -rf app/build
is what helped in my case.
cm...@google.com <cm...@google.com> #22
I've managed to get what looks like a reliable reproduction case for this.
cm...@google.com <cm...@google.com> #23
This is mitigated in 22ea772c902a9891a6023ed1ebdc832871775ba6
but I am suspicious there are other lurking issues by inspection and from
cm...@google.com <cm...@google.com> #24
Filed
an...@google.com <an...@google.com> #25
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Jellyfish | 2023.3.1 Canary 12
- Android Gradle Plugin 8.4.0-alpha12
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
ga...@linecorp.com <ga...@linecorp.com> #26
AGP 8.3 final version was released at today.
Could this fix be applied to AGP 8.3.x patch version?
Or is there another solution that can alleviate this issue?
cm...@google.com <cm...@google.com> #27
Re merge
or pickFirst
in packagingOptions
?
jf...@block.xyz <jf...@block.xyz> #28
No, we have some exclude
rules but don't use either merge
or pickFirst
an...@google.com <an...@google.com> #29
The fixes for this issue are now also available in:
- Android Studio Iguana | 2023.2.1 Patch 1
- Android Gradle Plugin 8.3.1
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
Often when I build an incremental build, the
mergeDebugJavaResource
task will fail with a message saying:To fix this, I need to remove the app build directory and re-run the command. I believe this might be happening because our module names are not unique and we rely on the full path of the module.
We're running AGP 8.1.0-beta02