Status Update
Comments
ma...@gmail.com <ma...@gmail.com> #2
We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
ju...@google.com <ju...@google.com>
ac...@google.com <ac...@google.com>
ma...@gmail.com <ma...@gmail.com> #3
When I run the same project on
Android studio : Android Studio Flamingo | 2022.2.1 Patch 2
Android Grable plugin version: 8.0.2
Gralde: 8.9
And the android device is the same. Debug works and apply code change works
But if I upgrade to ladybug such as
Android studio : Android Studio Ladybug | 2024.2.1 Patch 3
Android Grable plugin version: 8.7.3
Gralde: 8.11 or 8.10 or 8.9
Debug works but apply code change will generate the same error as mentioned before .
ma...@gmail.com <ma...@gmail.com> #4
Android Studio Hedgehog | 2023.1.1 Patch 1
Android Studio Hedgehog | 2023.1.1 Patch 2.
Android Studio Jellyfish | 2023.3.1 Canary 10
Android Studio Giraffe | 2022.3.1 Patch 2
Android Studio Giraffe | 2022.3.1 Patch 1
Android Studio Giraffe | 2022.3.1 July 25, 2023
ac...@google.com <ac...@google.com> #5
Just to make sure.
Step 3 from #1, when you say "Run", you were actually launching the application with Debug right?
After that you try to use Apply Changes?
ma...@gmail.com <ma...@gmail.com> #6
ma...@gmail.com <ma...@gmail.com> #7
ac...@google.com <ac...@google.com> #8
I'll have to look a bit deeper.
FYI: Apply Changes tends to work much better with Run (without debugger attached). The debugger and breakpoint can get into situtations were updating the code becomes difficult and there are times where Apply Changes need to "bail out" in those scenerios. Athought this case doesn't sound like it should be one of those.
ma...@gmail.com <ma...@gmail.com> #9
Edit Configurations - Select "Profiler: Run app as Debuggable ( complete data )"
But is this what I am supposed to do before each attempt to apply code changes?
ac...@google.com <ac...@google.com> #10
Like I mentioned in #8.
The best way to use Apply Changes is to using normal "Run" instead of debug. It is the green arrow icon next to debug.
ma...@gmail.com <ma...@gmail.com> #11
ac...@google.com <ac...@google.com> #12
But still this is a bug...
No doubt. We are looking into it. The suggestion was a temporary workaround to unblock anyone who would like to continue to use Apply Code Changes.
Description
STEPS TO REPRODUCE:
1. Download the latest android studio "Android Studio Meerkat | 2024.3.1"
2. File - New Project - Basic Views Activity - Java / API 35 / Groovy
3. Build run - Success
4. Apply code changes - Fails with the following error messages
"Run app
Installation failed Suggested action:
Retry"
"Error running 'app'
Runtime Exception. java. util. concurrent. ExecutionException: java. lang. IllegalArgumentException: R+ Device should have FULL debugger swap support"
Click Retry - re installation succeeded
Settings:
AGP: 8.9.0
Gradle Version 8.11.1
compileSdk 35
minSdk 33
targetSdk 35
versionCode 1
versionName "1.0"
ATTACH SCREENSHOTS/RECORDINGS OF THE ISSUE
ATTACH LOG FILES (Select Help > Show Log in Files, or Show Log in Finder on a Mac)