Status Update
Comments
ha...@google.com <ha...@google.com>
ga...@google.com <ga...@google.com>
sp...@google.com <sp...@google.com> #2
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
mk...@opera.com <mk...@opera.com> #3
mk...@opera.com <mk...@opera.com> #4
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
sp...@google.com <sp...@google.com> #5
ma...@gmail.com <ma...@gmail.com> #6
sp...@google.com <sp...@google.com> #7
mk...@opera.com <mk...@opera.com> #8
am...@google.com <am...@google.com> #9
mk...@opera.com <mk...@opera.com> #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
```
am...@google.com <am...@google.com> #11
mk...@opera.com <mk...@opera.com> #12
am...@google.com <am...@google.com> #13
mk...@opera.com <mk...@opera.com> #14
mk...@opera.com <mk...@opera.com> #15
am...@google.com <am...@google.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.
am...@google.com <am...@google.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
mk...@opera.com <mk...@opera.com> #18
Thanks for the potential workaround. Please find the output of the mentioned task with --debug flag.
mk...@opera.com <mk...@opera.com> #19
Does the attached output give you any clue? I see plenty of transformations being done but i don't see any particular task that requests them.
am...@google.com <am...@google.com> #20
Yes, the problem was with the AsmTransform, I assume you're applying hilt in that app project? I was able to reproduce the issue with an app module that contains dynamic feature deps, minification enabled, local jar dependency and an asm transformation that transforms all dependencies. I've also merged a
Can you try with AGP 8.3.0-dev
with the following artifacts repo and see if that fixes the problem?
maven {
url = uri("https://androidx.dev/studio/builds/10746020/artifacts/artifacts/repository")
}
mk...@opera.com <mk...@opera.com> #21
Yes, we do use hilt indeed.I tried to reproduce it by adding hilt to my toy project when I've seen some hilt related transformation along the executed transforms, it didn't reproduce to me but maybe I missed something.
The given fix works! Thanks for the effort put in finding the root cause. Is there any chance there will be an update to 8.1.2 including it anytime soon?
am...@google.com <am...@google.com> #22
Great, thanks for confirming. Unfortunately, it's too late for the change to be included in 8.1.2. But it will be available in 8.2.0-beta04 and 8.3.0-alpha03.
am...@google.com <am...@google.com>
an...@google.com <an...@google.com> #23
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 Iguana | 2023.2.1 Canary 3
- Android Gradle Plugin 8.3.0-alpha03
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!
an...@google.com <an...@google.com> #24
The fixes for this issue are now also available in:
- Android Studio Hedgehog | 2023.1.1 Beta 4
- Android Gradle Plugin 8.2.0-beta04
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
> Task :app:mergeReleaseClasses FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeReleaseClasses'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeClassesTask$MergeClassesWorkAction
> Zip file '/Users/.../build/app/intermediates/module_and_runtime_deps_classes/release/base.jar' already contains entry 'com/google/android/youtube/player/internal/u.class', cannot overwrite
The u.class mentioned in the error comes from a .jar file that I have in the libs dir.
I was looking in which AGP it started to break. When I get back to AGP 8.1.0-alpha10 it started to break with different error, this time related to R8 but mentioning the same base.jar file. I found the following issue
------------------
Version of Gradle Plugin: 8.1.0
Version of Gradle: 8.1.1
Version of Java: 17
OS: MacOS Ventura 13.4.1