-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The **XAML Hot Reload** feature does not work when debugging on Android devices. #1241
Comments
@Calichi - FYI, XAML Hot Reload should work as you type. Saving the file shouldn't be necessary. And the "No changes were found" message actually refers to C# changes, not XAML changes, though we're working on improving that message to make it more explicit. FYI on all that. As for the core issue here, can you provide more info. If you create a new, simple MAUI project (bring up the command palette / .NET: New Project... / .NET MAUI) does Hot Reload work there? Does it fail for all pages in your app or just some? When it fails, can you please share the contents of the Thanks. I would like to get this issue tracked down & working, both for you and for others who may run into the same problem, whatever it is. |
@BretJohnson - I am attaching a video divided into two parts of the entire process. The overlay of the mobile device screen is not synchronized with the video, but it was recorded during the demonstration. bug_hot_reload_part_1.mp4bug_hot_reload_part_2.mp4 |
@BretJohnson - Note also, there is an instruction: ‘Start sdb and execute…’ What is |
Where do you see that message? Can you paste the full message or a screenshot maybe? |
@BretJohnson - The message is located in the yellow-highlighted area, but it is in Spanish. |
Ah, gotcha. Below is the English version of that UI. |
But as for your issue, the Can you please try this:
|
And what kind of Android device is this? It's a physical Android device, not an emulator, right? |
@BretJohnson - Indeed, I am using a physical mobile device to debug my applications, and I have no intention of doing so on an emulator. For the same reason, I am seeking assistance. Perhaps you could explain how executing on the emulator could help resolve the issue with the physical device? Or what is their relationship? It’s worth mentioning that I have debugged on the Perhaps it’s not relevant, but I usually work with Finally, I am fully willing to provide any information you need to help resolve this issue. |
@BretJohnson - This is the result of executing the mentioned command, but on the physical device, not on an emulator. As you can see, the mentioned file appears |
@Calichi - Thanks for that info. Can you also share the results of running this adb command (with the physical device connected): As for running on an emulator, I only mentioned that to better understand what scenarios do & don't work for you, as a troubleshooting step. But you don't need to do it - the adb output above is the most useful. And indeed my goal, as is yours, is figure out why this isn't working for you, with your device, and fix things so it does (probably by making some change in our code, though maybe there's a workaround in advance of that). Thanks again for your help tracking this down. We're getting closer. |
Here's requested execution's result for the given command: |
@Calichi Thanks. That looks valid. As the next check do you think you can add a little code to your app to get the value of the |
Here's the result. |
More information. |
Thanks. So that's the issue. And this device is an OPPO A15 (https://www.oppo.com/en/smartphones/series-a/a15/specs/), right? It looks like the OS there is |
You’re welcome! Thank you for your attention and follow-up. I’ll wait for the update |
I'll update this issue to mark it fixed, once we have a fix in place & we'll close the issue after the fix is released publicly. |
Ok. I can post another bug about debugging |
Sounds good. For issues that happen in both VS Windows and VS Code, I'd suggest reproducing it in VS Windows, then create a feedback ticket (Help / Send Feedback / Report a Problem). Feedback tickets include logs which sometimes help. And note on the feedback ticket that you also see it on VS Code. Reporting a separate VS Code bug here, in addition to the VS Windows feedback ticket, shouldn't normally be necessary, but on the other hand it couldn't hurt and will raise visibility so feel free to do that if you'd prefer. |
Once again, thank you very much! |
For me XAML hot reload works in emulator but doesn't in real device too |
This issue seems to be resolved because I’ve been able to debug on the device. However, hot reload doesn’t load on various occasions during the start of debugging, and it shows me these messages: Hot Reload initialization error: Launch environment file was last updated 141 seconds ago and is expired |
Type: Bug
The changes are not applied after editing and saving a XAML file, even when pressing the "Fire" button. The
.NET Hot Reload
output displays No changes were found.Extension version: 1.0.6
VS Code version: Code 1.90.2 (5437499feb04f7a586f677b155b039bc2b3669eb, 2024-06-18T22:34:26.404Z)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
| VS Bug 2113764
The text was updated successfully, but these errors were encountered: