Status Update
Comments
es...@google.com <es...@google.com>
cm...@google.com <cm...@google.com>
hu...@google.com <hu...@google.com> #2
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
ys...@gmail.com <ys...@gmail.com> #3
hu...@google.com <hu...@google.com> #4
#sdkmanager --package_file=${PATH_WORKSPACE}/packages
while read p; do echo "y" | sdkmanager "${p}"; done <${PATH_WORKSPACE}/packages
ch...@google.com <ch...@google.com>
ch...@google.com <ch...@google.com> #5
ap...@google.com <ap...@google.com> #6
ap...@google.com <ap...@google.com> #7
ap...@google.com <ap...@google.com> #8
ap...@google.com <ap...@google.com> #9
ap...@google.com <ap...@google.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
```
ap...@google.com <ap...@google.com> #11
ap...@google.com <ap...@google.com> #12
ap...@google.com <ap...@google.com> #13
ch...@google.com <ch...@google.com> #14
ys...@gmail.com <ys...@gmail.com> #15
ch...@google.com <ch...@google.com>
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.
ap...@google.com <ap...@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
ap...@google.com <ap...@google.com> #18
Branch: 8.5
commit e606d91cdeba3ac6522fd28540e2d3b32d1bf905
Author: Christoffer Adamsen <christofferqa@google.com>
Date: Tue Jul 02 09:17:02 2024
Version 8.5.32
Bug:
Change-Id: I472a5f30932516a2e2d3b0cc4488492f56d140c6
M src/main/java/com/android/tools/r8/Version.java
ch...@google.com <ch...@google.com> #19
Sorry, and thanks for the feedback! This should be fixed in R8 8.4.43 and R8 8.5.32. It would be great if you can confirm whether this works for you. Thanks!
ys...@gmail.com <ys...@gmail.com> #20
Both R8 8.4.43 and R8 8.5.32 work for me. Thanks!
ch...@google.com <ch...@google.com>
an...@google.com <an...@google.com> #21
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 Koala Feature Drop | 2024.1.2 Beta 2
- Android Gradle Plugin 8.6.0-beta02
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!
ys...@gmail.com <ys...@gmail.com> #22
Android Gradle Plugin 8.6.0-beta02 works for me. Thanks!
an...@google.com <an...@google.com> #23
The fixes for this issue are now also available in:
- Android Studio Koala | 2024.1.1 Patch 2
- Android Gradle Plugin 8.5.2
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
ys...@gmail.com <ys...@gmail.com> #24
Android Gradle Plugin 8.5.2 works for me. Thanks!
Description
The release build of a Wear OS app with ongoing activity may cause java.lang.IllegalAccessError, if built with Gradle Plugin 8.4.0/
STEPS TO REPRODUCE:
1. Download the attached project.
2. Build the app using assembleRelease.
3. Install the APK into a Wear OS emulator with API 33.
4. Tap the "Start" button.
5. The app will crash with the error:
java.lang.IllegalAccessError: Illegal class access: 'com.example.testgradlebug.MyService' attempting to access 'androidx.wear.ongoing.OngoingActivityData' ...
The error will not occur if change the following line in gradle/libs.versions.toml:
agp = "8.5.0"
to:
agp = "8.3.0"
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)
------------------
IMPORTANT: Please read
all required information.
------------------
Studio Build: AI-241.15989.150.2411.11948838, built on June 11, 2024
Version of Gradle Plugin: 8.5.0
Version of Gradle: 8.7
Version of Java: 17.0.10+0-17.0.10b1087.21-11609105 aarch64
OS: