Fixed
Status Update
Comments
xa...@google.com <xa...@google.com>
yb...@google.com <yb...@google.com> #2
This was broken by 3bca759a5ff08352de831bb1e9b61b1ec2b3362d.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
yb...@google.com <yb...@google.com> #3
Almost 2 months later and this is still broken
yb...@google.com <yb...@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
xa...@google.com <xa...@google.com> #5
jb...@google.com What is the update on this?
yb...@google.com <yb...@google.com> #6
What is the status of this item?
lo...@gradle.com <lo...@gradle.com> #7
This has been fixed on master today (internal ref: ag/2945015) and will be available in the next SDK release.
yb...@google.com <yb...@google.com> #8
Any ETA on next release?
lo...@gradle.com <lo...@gradle.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.
yb...@google.com <yb...@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
```
je...@google.com <je...@google.com>
lo...@gradle.com <lo...@gradle.com> #11
Hi, is there any update to this issue? Thanks.
yb...@google.com <yb...@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?
lo...@gradle.com <lo...@gradle.com> #13
Yeah, still not fixed --'
mz...@gmail.com <mz...@gmail.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.
lo...@gradle.com <lo...@gradle.com> #15
Any updates on this? The help for this command clearly states this argument is supported.
yb...@google.com <yb...@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.
yb...@google.com <yb...@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
yb...@google.com <yb...@google.com> #18
I think this is already fixed, over to H.. to verify.
hu...@google.com <hu...@google.com> #19
Yes, this has been fixed for Java projects that are not using the Kapt plugin.
In 3.2.0-alpha16, JavaCompile will be cacheable given the same project location (Change-Id: I1b69c0a86ef981f22634862be67d0143760dec2c).
In 3.2.0-alpha17, it will be cacheable across different project locations (Change-Id: Ibe60c7ce9142bf2fe44c9b4689b4490905dd1d1a).
In both scenarios, it is still not cacheable if Kapt is used. I'll find time to fix Kapt next, but it may or may not make it to 3.2 stable.
In 3.2.0-alpha16, JavaCompile will be cacheable given the same project location (Change-Id: I1b69c0a86ef981f22634862be67d0143760dec2c).
In 3.2.0-alpha17, it will be cacheable across different project locations (Change-Id: Ibe60c7ce9142bf2fe44c9b4689b4490905dd1d1a).
In both scenarios, it is still not cacheable if Kapt is used. I'll find time to fix Kapt next, but it may or may not make it to 3.2 stable.
ja...@google.com <ja...@google.com> #21
Update: both JetBrains bugs have now been fixed.
hu...@google.com <hu...@google.com> #22
We have fixed one of the two remaining caching scenarios when Kapt is used:
In 3.2.0-rc-01 (and 3.3.0-alpha-04), JavaCompile will be cacheable with Kapt given the same project location (Change-Id: Idf21b53232af260314c22ea0777d0a20a355a64e).
Fixing the last scenario (making JavaCompile cacheable with Kapt across different project locations) is pending on the following steps:
- Update our code base to Kotlin 1.2.51 or 1.2.60, whichever has the fixes for #20
- Enforce the above versions as minimum Kotlin version and remove Kapt workarounds from the AGP
This last fix might not make it to 3.2 stable (depending on how we want to prioritize it).
In 3.2.0-rc-01 (and 3.3.0-alpha-04), JavaCompile will be cacheable with Kapt given the same project location (Change-Id: Idf21b53232af260314c22ea0777d0a20a355a64e).
Fixing the last scenario (making JavaCompile cacheable with Kapt across different project locations) is pending on the following steps:
- Update our code base to Kotlin 1.2.51 or 1.2.60, whichever has the fixes for #20
- Enforce the above versions as minimum Kotlin version and remove Kapt workarounds from the AGP
This last fix might not make it to 3.2 stable (depending on how we want to prioritize it).
ja...@google.com <ja...@google.com> #23
ta...@gmail.com <ta...@gmail.com> #24
Please make it to 3.2, please make it to 3.2, pretty please.
hu...@google.com <hu...@google.com> #25
I'm happy to inform that we have fixed the last scenario, just in time for the 3.2 release: Starting with 3.2.0-rc-02, JavaCompile will be completely cacheable, with or without Kapt. Change-Id: I6ec2b168379de8c89bb0e56ff4fae4c84edcf2cd
Note to 3.3 canary users: It might take one or two canaries for the last fix to propagate to 3.3, ETA is 3.3.0-alpha-06.
Note to 3.3 canary users: It might take one or two canaries for the last fix to propagate to 3.3, ETA is 3.3.0-alpha-06.
lo...@gradle.com <lo...@gradle.com> #26
This is excellent news indeed!
ta...@gmail.com <ta...@gmail.com> #27
🎉🎉🎉
hu...@google.com <hu...@google.com> #28
Update: This issue will be completely fixed in 3.2.0-rc01 and 3.3.0-alpha07.
[Deleted User] <[Deleted User]> #29
nice
vi...@gmail.com <vi...@gmail.com> #30
nice
Description
- AndroidJavaCompile.dataBindingDependencyArtifacts is missing a `@PathSensitive` annotation, so it's treated as `ABSOLUTE` (this is tracked in
- A number of absolute paths are specified as annotation processor parameters in `options.compilerArgs`:
- -Aandroid.databinding.minApi=26
- -Aandroid.databinding.enableDebugLogs=0
- -Aandroid.databinding.sdkDir=/Users/lptr/Library/Android/sdk
- -Aandroid.databinding.bindingBuildFolder=/private/var/folders/kw/65bvkdfn6cv_4g4vszf1wm_80000gn/T/junit4630811611102055048/junit5868716240725709754/library/build/intermediates/data-binding-compiler/debug
- -Aandroid.databinding.enableForTests=0
- -Aandroid.databinding.modulePackage=org.gradle.android.example.library
- -Aandroid.databinding.generationalFileOutDir=/private/var/folders/kw/65bvkdfn6cv_4g4vszf1wm_80000gn/T/junit4630811611102055048/junit5868716240725709754/library/build/intermediates/bundles/debug/data-binding
- -Aandroid.databinding.xmlOutDir=/private/var/folders/kw/65bvkdfn6cv_4g4vszf1wm_80000gn/T/junit4630811611102055048/junit5868716240725709754/library/build/intermediates/data-binding-info/debug
- -Aandroid.databinding.artifactType=LIBRARY
- -Aandroid.databinding.printEncodedErrors=0
- -Aandroid.databinding.isTestVariant=0
- -Aandroid.databinding.exportClassListTo=/private/var/folders/kw/65bvkdfn6cv_4g4vszf1wm_80000gn/T/junit4630811611102055048/junit5868716240725709754/library/build/intermediates/data-binding-info/debug/_generated.txt
- A source file is generated called `DataBindingInfo.java` with a random UUID that changes every time a new file is generated:
package android.databinding.layouts;
import android.databinding.BindingBuildInfo;
@BindingBuildInfo(buildId="9dfdb009-9c54-4b16-8df1-956cd6e00303")
public class DataBindingInfo {}