Verified
Status Update
Comments
ap...@google.com <ap...@google.com> #3
@2 Thank you for the quick handling for this.
I wish policy team of the Play Store could be as cooperative as you guys here.
I wish policy team of the Play Store could be as cooperative as you guys here.
ap...@google.com <ap...@google.com> #4
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 Giraffe Canary 1 (2022.3.1.1)
- Android Gradle Plugin 8.1.0
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!
ap...@google.com <ap...@google.com> #5
@4 Seems fixed there.
Can you please check about a similar issue, of various WallpaperManager functions, that the IDE claims I need to have the READ_EXTERNAL_STORAGE even if I target API 33, yet this permission isn't available there:
https://issuetracker.google.com/issues/265579414
?
The policy team is also stuck on the idea that MANAGE_EXTERNAL_STORAGE can't be used for these functions, and according to what I've found, it's actually the opposite: having MANAGE_EXTERNAL_STORAGE granted is the only way to use this functions when targeting&running on Android 13:
https://issuetracker.google.com/issues/237124750#comment44
Please talk to them as I fail to convince them about it, and they won't accept to let me still use these functions on my tiny app.
Can you please check about a similar issue, of various WallpaperManager functions, that the IDE claims I need to have the READ_EXTERNAL_STORAGE even if I target API 33, yet this permission isn't available there:
?
The policy team is also stuck on the idea that MANAGE_EXTERNAL_STORAGE can't be used for these functions, and according to what I've found, it's actually the opposite: having MANAGE_EXTERNAL_STORAGE granted is the only way to use this functions when targeting&running on Android 13:
Please talk to them as I fail to convince them about it, and they won't accept to let me still use these functions on my tiny app.
ap...@google.com <ap...@google.com> #6
Project: r8
Branch: 8.3
commit acd8441900910a91f55150373dfc0eaa45d5e990
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:46:09 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91304
Branch: 8.3
commit acd8441900910a91f55150373dfc0eaa45d5e990
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:46:09 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ap...@google.com <ap...@google.com> #7
Project: r8
Branch: 8.4
commit 677c717bd545fffb83e047bba79b49d626ad246e
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:44:34 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91269
Branch: 8.4
commit 677c717bd545fffb83e047bba79b49d626ad246e
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:44:34 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ap...@google.com <ap...@google.com> #8
Project: r8
Branch: 8.4
commit aec43c3c301006f4cb988b440d5490152af016b1
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:44:46 2024
Version 8.4.25
Bug: b/335803299
Change-Id: I3e94bb0ebfe3801f800fde4ea71c6e7180eea18e
M src/main/java/com/android/tools/r8/Version.java
https://r8-review.googlesource.com/91303
Branch: 8.4
commit aec43c3c301006f4cb988b440d5490152af016b1
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:44:46 2024
Version 8.4.25
Bug:
Change-Id: I3e94bb0ebfe3801f800fde4ea71c6e7180eea18e
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #9
Project: r8
Branch: 8.1
commit 43f409471244143c117dea259bf7728a36652517
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:18 2024
Version 8.1.81
Bug: b/335803299
Change-Id: I066e77a825f7c2d58c81b0b0e46773a7e5a5daab
M src/main/java/com/android/tools/r8/Version.java
https://r8-review.googlesource.com/91307
Branch: 8.1
commit 43f409471244143c117dea259bf7728a36652517
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:18 2024
Version 8.1.81
Bug:
Change-Id: I066e77a825f7c2d58c81b0b0e46773a7e5a5daab
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #10
Project: r8
Branch: 8.1
commit 78a7e914b2cfda67c8b32e70ca71d0640ce4b30f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:07 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91271
Branch: 8.1
commit 78a7e914b2cfda67c8b32e70ca71d0640ce4b30f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:07 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ap...@google.com <ap...@google.com> #11
Project: r8
Branch: 8.2
commit f407251acb3b760cd10defc37218e73ad401bd4f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:56:15 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91270
Branch: 8.2
commit f407251acb3b760cd10defc37218e73ad401bd4f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:56:15 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ap...@google.com <ap...@google.com> #12
Project: r8
Branch: 8.3
commit acd8441900910a91f55150373dfc0eaa45d5e990
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:46:09 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91304
Branch: 8.3
commit acd8441900910a91f55150373dfc0eaa45d5e990
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:46:09 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ap...@google.com <ap...@google.com> #13
Project: r8
Branch: 8.1
commit 78a7e914b2cfda67c8b32e70ca71d0640ce4b30f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:07 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91271
Branch: 8.1
commit 78a7e914b2cfda67c8b32e70ca71d0640ce4b30f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:07 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ap...@google.com <ap...@google.com> #14
Project: r8
Branch: 8.2
commit f407251acb3b760cd10defc37218e73ad401bd4f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:56:15 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91270
Branch: 8.2
commit f407251acb3b760cd10defc37218e73ad401bd4f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:56:15 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
ze...@google.com <ze...@google.com>
ap...@google.com <ap...@google.com> #15
Project: r8
Branch: 8.1
commit 78a7e914b2cfda67c8b32e70ca71d0640ce4b30f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:07 2024
Register all referencing contexts for API stubs
Bug: b/335803299
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
https://r8-review.googlesource.com/91271
Branch: 8.1
commit 78a7e914b2cfda67c8b32e70ca71d0640ce4b30f
Author: Ian Zerny <zerny@google.com>
Date: Mon Apr 22 09:58:07 2024
Register all referencing contexts for API stubs
Bug:
Change-Id: Iac464d7beaea858444777323d09ad7f1ee44d290
M src/main/java/com/android/tools/r8/androidapi/ApiReferenceStubber.java
A src/test/java/com/android/tools/r8/synthesis/globals/GlobalSyntheticStubContextRegressionTest.java
an...@google.com <an...@google.com> #16
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 Jellyfish | 2023.3.1 Patch 1
- Android Gradle Plugin 8.4.1
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!
Description
The registration of contexts when creating global stub types is computed behind a seen-types cache. Thus only the initial generating context is registered. The result of this is that an incremental build may be incomplete if this initial generating context is changed to no long need the global which some other context still uses it and was not part of the compilation unit.
This issue can manifest as a verification error when an Exception type stub is missing on the target device.