Status Update
Comments
ch...@google.com <ch...@google.com> #2
We're seeing a similar error in our code. Appears to be a combination of AGP 8.6.0 and Kotlin 2 needed to hit it.
private fun Intent.stripUnwantedFlags() {
// Explicitly remove the new task and clear task flags (Our browser activity is a single
// task activity and we never want to start a second task here).
flags = flags and Intent.FLAG_ACTIVITY_NEW_TASK.inv()
flags = flags and Intent.FLAG_ACTIVITY_CLEAR_TASK.inv()
// IntentReceiverActivity is started with the "excludeFromRecents" flag (set in manifest). We
// do not want to propagate this flag from the intent receiver activity to the browser.
flags = flags and Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS.inv()
}
All 3 lines then hit:
Must be one or more of: Intent.FLAG_GRANT_READ_URI_PERMISSION, Intent.FLAG_GRANT_WRITE_URI_PERMISSION, Intent.FLAG_FROM_BACKGROUND, Intent.FLAG_DEBUG_LOG_RESOLUTION, Intent.FLAG_EXCLUDE_STOPPED_PACKAGES, Intent.FLAG_INCLUDE_STOPPED_PACKAGES, Intent.FLAG_GRANT_PERSISTABLE_URI_PERMISSION, Intent.FLAG_GRANT_PREFIX_URI_PERMISSION, Intent.FLAG_ACTIVITY_MATCH_EXTERNAL, Intent.FLAG_ACTIVITY_NO_HISTORY, Intent.FLAG_ACTIVITY_SINGLE_TOP, Intent.FLAG_ACTIVITY_NEW_TASK, Intent.FLAG_ACTIVITY_MULTIPLE_TASK, Intent.FLAG_ACTIVITY_CLEAR_TOP, Intent.FLAG_ACTIVITY_FORWARD_RESULT, Intent.FLAG_ACTIVITY_PREVIOUS_IS_TOP, Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS, Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT, Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED, Intent.FLAG_ACTIVITY_LAUNCHED_FROM_HISTORY, Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, Intent.FLAG_ACTIVITY_NEW_DOCUMENT, Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET, Intent.FLAG_ACTIVITY_NO_USER_ACTION, Intent.FLAG_ACTIVITY_REORDER_TO_FRONT, Intent.FLAG_ACTIVITY_NO_ANIMATION, Intent.FLAG_ACTIVITY_CLEAR_TASK, Intent.FLAG_ACTIVITY_TASK_ON_HOME, Intent.FLAG_ACTIVITY_RETAIN_IN_RECENTS, Intent.FLAG_ACTIVITY_LAUNCH_ADJACENT, Intent.FLAG_ACTIVITY_REQUIRE_NON_BROWSER, Intent.FLAG_ACTIVITY_REQUIRE_DEFAULT, Intent.FLAG_RECEIVER_REGISTERED_ONLY, Intent.FLAG_RECEIVER_REPLACE_PENDING, Intent.FLAG_RECEIVER_FOREGROUND, Intent.FLAG_RECEIVER_NO_ABORT, Intent.FLAG_RECEIVER_VISIBLE_TO_INSTANT_APPS
ka...@gmail.com <ka...@gmail.com> #3
The initial report (
However,
ka...@gmail.com <ka...@gmail.com> #4
Thanks for fixing! What release should we be able to verify the fix in? And is there any chance of a backport for 8.6.1?
ap...@google.com <ap...@google.com> #7
Thanks for the update!
ap...@google.com <ap...@google.com> #8
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 Ladybug Feature Drop | 2024.2.2 Canary 2
- Android Gradle Plugin 8.8.0-alpha02
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> #9
The fixes for this issue are now also available in:
- Android Studio Ladybug | 2024.2.1 RC 1
- Android Gradle Plugin 8.7.0-rc01
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
ap...@google.com <ap...@google.com> #10
Branch: 3.3
commit ac369528e402ad28413bfa827407af02cf1a1fa1
Author: Christoffer Quist Adamsen <christofferqa@google.com>
Date: Wed May 04 12:03:11 2022
Version 3.3.37
Bug:
Change-Id: Ibc97428c179757dad051e35ae79456377de82236
M src/main/java/com/android/tools/r8/Version.java
ap...@google.com <ap...@google.com> #11
Branch: 3.3
commit 92683ae9c268496ce973b24e01d37b46daf23d00
Author: Christoffer Quist Adamsen <christofferqa@google.com>
Date: Wed May 04 12:02:12 2022
Fix signature collision after field type strengthening
Bug:
Change-Id: I4ae6ccb9e5e683a7a43df86db95eb4332719a1a9
M src/main/java/com/android/tools/r8/optimize/argumentpropagation/ArgumentPropagatorProgramOptimizer.java
M src/test/java/com/android/tools/r8/ir/optimize/membervaluepropagation/fields/FieldTypeStrengtheningCollisionTest.java
ap...@google.com <ap...@google.com> #12
Branch: 3.3
commit 9fa4556d433790cd3a404aa628fd2c2c9f7fcdc1
Author: Christoffer Quist Adamsen <christofferqa@google.com>
Date: Wed May 04 12:01:58 2022
Reproduce signature collision after field type strengthening
Bug:
Change-Id: Id30bc4a0f0344c0ddc85d52e8075a6ba631f1af3
M src/test/java/com/android/tools/r8/graph/MissingClassThrowingTest.java
A src/test/java/com/android/tools/r8/ir/optimize/membervaluepropagation/fields/FieldTypeStrengtheningCollisionTest.java
M src/test/java/com/android/tools/r8/utils/codeinspector/AssertUtils.java
ap...@google.com <ap...@google.com> #13
Branch: 3.2
commit fd641448a9cf86e66ea841d0371abc9d525f541a
Author: Christoffer Quist Adamsen <christofferqa@google.com>
Date: Wed May 04 12:14:22 2022
Fix signature collision after field type strengthening
Bug:
Change-Id: I4ae6ccb9e5e683a7a43df86db95eb4332719a1a9
M src/main/java/com/android/tools/r8/optimize/argumentpropagation/ArgumentPropagatorProgramOptimizer.java
M src/test/java/com/android/tools/r8/ir/optimize/membervaluepropagation/fields/FieldTypeStrengtheningCollisionTest.java
ap...@google.com <ap...@google.com> #14
Branch: 3.2
commit 5dfc9e205ed2ac25c0736d0bef0c3f8c18714191
Author: Christoffer Quist Adamsen <christofferqa@google.com>
Date: Wed May 04 12:13:45 2022
Reproduce signature collision after field type strengthening
Bug:
Change-Id: Id30bc4a0f0344c0ddc85d52e8075a6ba631f1af3
M src/test/java/com/android/tools/r8/graph/MissingClassThrowingTest.java
A src/test/java/com/android/tools/r8/ir/optimize/membervaluepropagation/fields/FieldTypeStrengtheningCollisionTest.java
M src/test/java/com/android/tools/r8/utils/codeinspector/AssertUtils.java
ch...@google.com <ch...@google.com> #15
Thanks for sharing the dump offline. I reproduced a compiler issue from the dump, which could trigger both the issue in
It would be great if you could confirm if R8 3.3.37 works for you.
ka...@gmail.com <ka...@gmail.com> #16
Hi,
Thanks for quick resolution. It is working properly for me.
Thankyou very much :)
de...@google.com <de...@google.com> #17
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 Dolphin Beta 2 (2021.3.1.11)
- Android Gradle Plugin 7.3.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!
Description
Getting
NullPointerException
when running with 3.3.35 version. Compiling properly with 3.1.66Agp version: 7.1.3 r8 version: 3.3.35