XAML Hot Reload not working.

Mehdi Jafari 56 Reputation points
2021-03-15T12:53:34.587+00:00

Hello
First of All I updated VS to 8.9 on my Mac but I couldn't see XHR after that,
I uninstalled VS for Mac and installed it again, Then XHR added to VS but it does not work!

I have VS 8.9 (Latest ver) now and Xamarin.Froms 5.0.0.2012. I updated every things but...

linker is "Don't link". XHT is enabled. I test both of mode "Change only" and "Full Page". It doesn't work.

XHR output in statusbar is:

XAML Hot Reload is using 'changes only' mode
XAML Hot Reload initializing...
WARN: Unknown Breakpoint Hit: Android.Runtime.JNIEnv.RegisterJniNatives(System.IntPtr typeName_ptr, int typeName_len, System.IntPtr jniClass, System.IntPtr methods_ptr, int methods_len)
HotReload: Initialized Agent.XAML Hot Reload Connected and Ready.

I don't know why XHR not working.

thanks in advance.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Willem van Rumpt 16 Reputation points
    2021-03-24T07:32:58.11+00:00

    Fixed in 16.9.2 (for me at least)


  2. Stefan Bogaard 1 Reputation point
    2021-07-30T12:23:24.933+00:00

    Switching back to reload full page fixed it for me

    119319-image.png


  3. Brian Savage 21 Reputation points
    2021-07-30T23:24:11.16+00:00

    This may help.

    I updated all the Android tools in the sdk manager to use the latest versions, and also removed all old versions.

    Cleaned solution and restarted VS.

    I am using full page reload rather than changes, and it now works. Although I won't be surprised if it stops working again!

    0 comments No comments