Status Update
Comments
ad...@google.com <ad...@google.com>
je...@google.com <je...@google.com>
cm...@google.com <cm...@google.com>
xo...@google.com <xo...@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
ch...@gmail.com <ch...@gmail.com> #3
The initial report (
However,
an...@google.com <an...@google.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?
ch...@gmail.com <ch...@gmail.com> #7
Thanks for the update!
xo...@google.com <xo...@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!
ch...@gmail.com <ch...@gmail.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.
xo...@google.com <xo...@google.com> #10
Thanks, I will investigate why the fix seems to have disappeared from Ladybug Feature Drop.
an...@google.com <an...@google.com> #11
The fixes for this issue are now also available in:
- Android Studio Meerkat Feature Drop | 2024.3.2 Canary 2
- Android Gradle Plugin 8.10.0-alpha02
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
xo...@google.com <xo...@google.com> #12
To update you on this:
I took a deeper look at the implementation of the change detector, and the banner displayer, and discovered a bit of a rats' nest. I've merged some fixes into our latest canary (as suggested by the above comment) and have also booked a meeting with owners to discuss ideas around redesigning / changing its implementation completely in order to make it more robust.
This bug might get more automated release notifications of the above kind as we make progress. Thanks once again.
an...@google.com <an...@google.com> #13
Further fixes for this issue are now available in:
- Android Studio Meerkat Feature Drop | 2024.3.2 Canary 3
- Android Gradle Plugin 8.10.0-alpha03
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
I also don't know if this is the expected behavior. Anyway, thanks in advance.
Steps to reproduce:
1: Make some changes to your build.gradle file from the editor and sync.
2: Open the Commit panel and view the changes in build.gradle.
3: Make some modification to the file from there, for example, changing the version number of the app.
Build: AI-233.14808.21.2331.11842104, 202405142049
AI-233.14808.21.2331.11842104, JRE 17.0.10+0--11572160x64 JetBrains s.r.o., OS Windows 10(amd64) v10.0 , screens 1366.0x768.0
AS: Jellyfish | 2023.3.1 Patch 1
Kotlin plugin: 233.14808.21.2331.11842104-AS
Android Gradle Plugin: 8.4.1
Gradle: 8.6
Gradle JDK: Oracle OpenJDK version 17.0.4
NDK: from local.properties: (not specified), latest from SDK: (not found)
CMake: from local.properties: (not specified), latest from SDK: 3.10.2, from PATH: (not found)
```