Status Update
Comments
mu...@gmail.com <mu...@gmail.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
rm...@google.com <rm...@google.com> #3
The initial report (
However,
rp...@google.com <rp...@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?
us...@gmail.com <us...@gmail.com> #7
Thanks for the update!
al...@gmail.com <al...@gmail.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!
vi...@gmail.com <vi...@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.
hr...@gmail.com <hr...@gmail.com> #10
Android Studio Koala | 2024.1.1 Patch 1
Fedora Linux 39 - Gnome 45.8.1 - Wayland
1 - Sometimes when I copy code from Android Studio and try to paste on another code (another Android Studio tab) or even in the same tab, the content doesn't paste.
2 - Other times Android Studio stays with old content and don't use the new content that is on OS clipboard.
ra...@google.com <ra...@google.com>
ra...@google.com <ra...@google.com> #11
I can easily get into a broken state w.r.t. copy-paste behavior on my Linux machine, after running the app on an [embedded] emulator.
sp...@google.com <sp...@google.com> #12
What are the steps to reproduce it?
ra...@google.com <ra...@google.com> #13
For me the scenario seems to be:
- copy some text from a Chrome tab, paste into Studio => it works
- run the app on the emulator, click to select some text in there, copy and paste it somewhere else in the app
- (same as 1) copy some text from a Chrome tab, paste into Studio => get text copied in step 2.
- switch to IntelliJ and paste => get the text from step 3. Studio keeps getting the text in step 2.
sp...@google.com <sp...@google.com> #14
Is the Running Devices window still open at step 3? Does anything change if you close it?
ra...@google.com <ra...@google.com> #15
Nothing changes if I close it. Just did, and now I can't paste anything into Studio until I restart the IDE.
sp...@google.com <sp...@google.com>
sp...@google.com <sp...@google.com>
sp...@google.com <sp...@google.com>
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 Ladybug Feature Drop | 2024.2.2 Canary 1
- Android Gradle Plugin 8.8.0-alpha01
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!
an...@google.com <an...@google.com> #17
The fixes for this issue are now also available in:
- Android Studio Meerkat | 2024.3.1 Canary 5
- Android Gradle Plugin 8.9.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Description
Scenarios:
1) Copy some text from anywhere outside the Android Studio (like browser/android Apps/other Linux apps...), try to paste anywhere in Android Studio (Dialogue box/Editor/terminal...) : NOT WORKING.
2) Copy some text from Android Studio, try to paste in android studio : NOT WORKING.
But the copied text is present in Clipboard. Checked by pressing Ctrl+Shift+V in Android Studio to show clipboard history.
3) Copy some text from Android Studio, try to paste outside Android Studio (like browser/android Apps/other Linux apps...) : WORKING FINE.
Android Studio Version : 3.4.1.
Device : Google Pixelbook (i5 7th Gen, 8Gb, 128Gb)
OS : ChromeOS
NOTE:
1) Not sure if it is an Android Studio Bug. Before updating to Android Studio 3.4.1, copy & paste is working very well without any bug in the same device.
2) Copy & Paste is working in Other Linux Apps. (Like Visual Studio Code, Terminal : by using Ctrl+Shift+V )
TRIED TROUBLE SHOOTS:
1) Uninstalled Android Studio.
2) Performed a Powerwash in Pixelbook.
3) Installed Android Studio again.
Still no use.
Build: 3.4.1, AI-183.6156.11.34.5522156, 201905012035, AI-183.6156.11.34.5522156, JRE 1.8.0_152-release-1343-b16-5323222x64 JetBrains s.r.o, OS Linux(amd64) v4.19.44-04905-gdcd4527c595a, screens 2400x1600Android Gradle Plugin: 3.4.1Gradle: 5.1.1NDK: from local.properties: (not specified); latest from SDK: (not found); LLDB: pinned revision 3.1 not found; latest from SDK: (package not found); CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found); Source: user_sentiment_feedback IMPORTANT: Please read