Fixed
Status Update
Comments
iv...@gradle.com <iv...@gradle.com> #2
This was broken by 3bca759a5ff08352de831bb1e9b61b1ec2b3362d.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
xa...@google.com <xa...@google.com>
hu...@google.com <hu...@google.com> #3
Almost 2 months later and this is still broken
hu...@google.com <hu...@google.com> #4
Since there is no progression, I wanted to share our quick-fix for the issue.
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
ri...@google.com <ri...@google.com> #5
jb...@google.com What is the update on this?
ri...@google.com <ri...@google.com> #6
What is the status of this item?
ri...@google.com <ri...@google.com> #7
This has been fixed on master today (internal ref: ag/2945015) and will be available in the next SDK release.
ri...@google.com <ri...@google.com> #8
Any ETA on next release?
ap...@google.com <ap...@google.com> #9
Still broken and not updated? --package_file argument is not usable in it's current form on 26.1.1 straight from the developer site.
xa...@google.com <xa...@google.com> #10
Comfirmed that this seems to still be broken. Can we have an update please?
```
(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
```
```
(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
```
ri...@google.com <ri...@google.com> #11
Hi, is there any update to this issue? Thanks.
ap...@google.com <ap...@google.com> #12
Hi Google. You claim it's been fixed on master, but we haven't had a new release since the broken version 26.1.1. Can you please release the fix?
ap...@google.com <ap...@google.com> #13
Yeah, still not fixed --'
ap...@google.com <ap...@google.com> #14
Can't believe this still isn't fixed 2 years later for a command line utility that sits on the main dev site.
ap...@google.com <ap...@google.com> #15
Any updates on this? The help for this command clearly states this argument is supported.
ap...@google.com <ap...@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.
sg...@google.com <sg...@google.com>
an...@google.com <an...@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
Description
Gradle 8.9 introduces an internal property that allows disabling artifact transform caching during build execution( disabling cache transforms and cache transform enabled ) with the following behavior in an Android project:
-Dorg.gradle.internal.transform-caching-disabled
). We measured the impact of disabling these transforms in a performance scenario where the same build was executed multiple times on a GitHub runner. We observed a significant regression(Disabling the cache transforms affects the task input build scans , the input differences in the task are found in the classes.dex files of the input artifacts. After analyzing the dex files from two different builds(attached), we observed the following differences in the strings within the dex file:
dexDir
of theDexMergingTask
, resulting in non-deterministic output for each iteration. When comparing twoThe diff report was generated by diffuse the following output:
However, if we exclude
DexingWithClasspathTransform
instead of disabling the cache for all transforms, the inputdexDir
of theDexMergingTask
remains consistent, and the task hits the cache.Attached the transform outputs (classes.dex) for
androidx.compose.ui:ui-graphics-android:1.7.0-beta01 (instrumented_ui-graphics-release-runtime.jar)
of two builds without caching forDexingWithClasspathTransform
Steps to reproduce:
reproducing_issue_dex
./gradlew assembleDebug -Dorg.gradle.internal.transform-caching-disabled
publishing build scans from two different runners/agentsGradle 8.9
AGP 8.5.2