Status Update
Comments
ze...@google.com <ze...@google.com>
lu...@gmail.com <lu...@gmail.com> #2
Fix (pending) is I2c2dc7b600603ee430fd0d91b23d52ea8aa29ca9.
ze...@google.com <ze...@google.com> #3
lu...@gmail.com <lu...@gmail.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> #5
ze...@google.com <ze...@google.com> #6
ze...@google.com <ze...@google.com> #7
lu...@gmail.com <lu...@gmail.com> #9
ze...@google.com <ze...@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
ze...@google.com <ze...@google.com> #13
ap...@google.com <ap...@google.com> #14
ap...@google.com <ap...@google.com> #15
lu...@gmail.com <lu...@gmail.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.1
commit 7b1a6e6695047ed4a2eaf6443e4736aa3ce7a885
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 09 09:08:21 2024
Keep redundant interfaces if class and interface are kept.
Bug:
Change-Id: I417d3a914246dc066ff36b96ca64a77a17e0804e
M src/main/java/com/android/tools/r8/shaking/TreePruner.java
A src/test/java/com/android/tools/r8/ir/optimize/unusedinterfaces/UnusedButKeptInterfaceTest.java
ze...@google.com <ze...@google.com> #19
We don't expect to pull anymore updates to the 4.0 branch. Is it possible to use 8.0 or later?
lu...@gmail.com <lu...@gmail.com> #20
OK, I'll try it with version 8.0.74.
ze...@google.com <ze...@google.com> #21
Thanks for confirming the fix works and for reporting the issue! A fix will be pushed to 8.0, 8.1, 8.2 and 8.3 branches for R8.
I'm assuming you know the set up to use newer versions of R8 without AGP updates, but if not or others find this issue, I've included it below.
Amend your settings.gradle
or settings.gradle.kts
file with:
pluginManagement {
buildscript {
repositories {
mavenCentral()
maven {
url = uri("https://storage.googleapis.com/r8-releases/raw")
}
}
dependencies {
classpath("com.android.tools:r8:8.0.74")
}
}
}
Since AGP 8, the R8 versions follow those of AGP, so if using AGP 8.0 use the latest version on the R8 8.0 branch (for this
ap...@google.com <ap...@google.com> #22
Branch: 8.2
commit 82f1ea5dd4d1870dd50e8f31ba6fce8ab6ef8b24
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 09 09:12:13 2024
Version 8.2.45
Bug:
Change-Id: Iba6a0eef5e23e3d850e85e7efea6c27fce45fabc
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #23
Branch: 8.2
commit 661f36cd71988b5f548a1163d1072d3c324e9c74
Author: Ian Zerny <zerny@google.com>
Date: Tue Jan 09 09:11:50 2024
Keep redundant interfaces if class and interface are kept.
Bug:
Change-Id: I417d3a914246dc066ff36b96ca64a77a17e0804e
M src/main/java/com/android/tools/r8/shaking/TreePruner.java
A src/test/java/com/android/tools/r8/ir/optimize/unusedinterfaces/UnusedButKeptInterfaceTest.java
sg...@google.com <sg...@google.com>
an...@google.com <an...@google.com> #24
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 Hedgehog | 2023.1.1 Patch 2
- Android Gradle Plugin 8.2.2
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!
so...@google.com <so...@google.com> #25
Comment added by automation: A postmortem has been automatically requested for this issue. Please author a postmortem on IRM. See go/android-postmortem-guidance for more context and details, including how to handle the case when this issue does not need a postmortem. If you have any questions not answered by go/android-postmortem-guidance, please email android-hygiene-tpm@, instead of reassigning the fixed bug. Thank you.
an...@google.com <an...@google.com> #26
The fixes for this issue are now also available in:
- Android Studio Iguana | 2023.2.1 RC 1
- Android Gradle Plugin 8.3.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
My code is just like this:
If gradle version is 7.x , the
interfaces.length()
is 0. Such as:If gradle version is 6.x, the
interfaces.length()
is 1. Such as:If gradle version is 7.x and
minifyEnabled false
, theinterfaces.length()
is 1. Such as:I must upgrade gradle version to 7.x in my android project and
minifyEnabled true
so, how can I solve this problem??? I expectinterfaces.length()
is not 0.