title: Xamarin Forms User Interface does not update to reflect XAML changes on Android
body: <p>I have a Xamarin Forms project with iOS and Android applications in it.  The other day I did several udates to XF and Visual Studio 2019 (running the latest none beta releases).  In the middle of this I was also moving a bunch of my shared code, including ContentViews used in multiple projects for my product, into a seperate .Net Core class library.  Once I got everything working, I was debugging one of my shared content views in my Android project.  I started noticing that changes I was making to the XAML of the ContentView were not being reflected in my XAML on the Android device.  Just to double check, I ran the iOS version of the project and everything worked fine.  </p>
  
  <p>This is what my solution explorer looks like:</p>
  
  <p><a href="https://i.stack.imgur.com/xNicL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xNicL.png" alt="enter image description here"></a>  </p>
  
  <p>The Kiosk project is the Xamarin Forms App.  The UCISharedAll contains the shared ContentView in the UCIFooter folder.  </p>
  
  <p>This is the XAML from the Footer </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;ContentView xmlns="http://xamarin.com/schemas/2014/forms" 
               xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
               xmlns:d="http://xamarin.com/schemas/2014/forms/design"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
               xmlns:sfbtn="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
               xmlns:localapp="clr-namespace:UCISharedAll.Resources;assembly=UCISharedAll"
               mc:Ignorable="d"
               x:Class="UCISharedAll.UCIFtr.UCIFooter"&gt;
  
      &lt;ContentView.Resources&gt;
          &lt;ResourceDictionary&gt;
              &lt;Style x:Key="slBackground" TargetType="StackLayout" &gt;
                  &lt;Setter Property="BackgroundColor" Value="{DynamicResource FooterBackgroundColor}" /&gt;
                  &lt;Setter Property="HorizontalOptions" Value="Fill" /&gt;
                  &lt;Setter Property="VerticalOptions" Value="End" /&gt;
                  &lt;Setter Property="Orientation" Value="Vertical" /&gt;
                  &lt;Setter Property="Margin" Value="0,0,0,0" /&gt;
              &lt;/Style&gt;
  
              &lt;Style x:Key="ftrLblStyle" TargetType="Label"&gt;
                  &lt;Setter Property="TextColor" Value="{DynamicResource FooterTextColor}" /&gt;
                  &lt;Setter Property="VerticalOptions" Value="Center" /&gt;
                  &lt;Setter Property="HorizontalOptions" Value="Center" /&gt;
                  &lt;Setter Property="HorizontalTextAlignment" Value="Center" /&gt;
                  &lt;Setter Property="FontSize" Value="Micro" /&gt;
              &lt;/Style&gt;
  
              &lt;Style x:Key="ftrLinkStyle" TargetType="Label"&gt;
                  &lt;Setter Property="TextColor" Value="{DynamicResource FooterTextColor}" /&gt;
                  &lt;Setter Property="VerticalOptions" Value="Center" /&gt;
                  &lt;Setter Property="HorizontalOptions" Value="Center" /&gt;
                  &lt;Setter Property="HorizontalTextAlignment" Value="Center" /&gt;
                  &lt;Setter Property="FontSize" Value="Micro" /&gt;
                  &lt;Setter Property="TextDecorations" Value="Underline" /&gt;
                  &lt;Setter Property="FontAttributes" Value="Bold" /&gt;
              &lt;/Style&gt;
  
  
              &lt;Style x:Key="PrivacyButtonStlye" TargetType="sfbtn:SfButton"&gt;
                  &lt;Setter Property="BorderColor" Value="#4D648D"/&gt;
                  &lt;Setter Property="IsCheckable" Value="False" /&gt;                 
                  &lt;Setter Property="FontSize" Value="Micro" /&gt;
                  &lt;Setter Property="CornerRadius" Value="10"/&gt;
                  &lt;Setter Property="ImageAlignment" Value="Start" /&gt;
                  &lt;Setter Property="BackgroundColor" Value="{DynamicResource PrivacyBtnBackgroundColor}" /&gt;
                  &lt;Setter Property="TextColor" Value="{DynamicResource PrivacyBtnTextColor}" /&gt;
                  &lt;Setter Property="HorizontalTextAlignment" Value="Center" /&gt;
                  &lt;Setter Property="ShowIcon" Value="true"/&gt;
                  &lt;Setter Property="FontAttributes" Value="Bold" /&gt;
                  &lt;Setter Property="HorizontalOptions" Value="Center" /&gt;
                  &lt;Setter Property="VerticalOptions" Value="Start" /&gt;
                  &lt;Setter Property="ImageSource" Value="lock.png" /&gt;
                  &lt;Setter Property="Padding" Value="8" /&gt;
              &lt;/Style&gt;
  
          &lt;/ResourceDictionary&gt;
      &lt;/ContentView.Resources&gt;
  
      &lt;ContentView.Content&gt;
          &lt;StackLayout x:Name="slMaster" Style="{DynamicResource slBackground}" &gt;
              &lt;StackLayout x:Name="slUserFooterArea" Orientation="Vertical" IsVisible="{Binding ShowFooterText}" 
                           HorizontalOptions="Fill" VerticalOptions="Start" Margin="0,4,0,4"&gt;
                  &lt;Label x:Name="lblUserFooterText" Text="{Binding KioskFooterText}" Style="{DynamicResource ftrLblStyle}" /&gt;
                  &lt;BoxView BackgroundColor="{DynamicResource DividerLineColor}" HeightRequest="2" HorizontalOptions="Fill" /&gt;
              &lt;/StackLayout&gt;
  
              &lt;!--This has to be in a stack layout so it does not go all the way across the screen--&gt;
              &lt;StackLayout Orientation="Horizontal" HorizontalOptions="Center" VerticalOptions="Start" Margin="0,8,0,0"&gt;
                  &lt;sfbtn:SfButton x:Name="btnPrivacy" Text="{localapp:Translate Privacy}" Clicked="btnPrivacyStatement_Clicked"
                                  Style="{DynamicResource PrivacyButtonStlye}" /&gt;
              &lt;/StackLayout&gt;
              &lt;StackLayout Orientation="Horizontal" Margin="0,8,0,0" HorizontalOptions="Center"&gt;
                  &lt;Label x:Name="lblAppFooterText" Style="{DynamicResource ftrLblStyle}" /&gt;
                  &lt;sfbtn:SfButton x:Name="btnPSSName" Clicked="btnPSSName_Clicked" HeightRequest="32"&gt;
                      &lt;Label x:Name="lblPSSName" Text="{localapp:Translate PSSName}" Style="{DynamicResource ftrLinkStyle}"/&gt;
                  &lt;/sfbtn:SfButton&gt;
              &lt;/StackLayout&gt;
          &lt;/StackLayout&gt;
      &lt;/ContentView.Content&gt;
  &lt;/ContentView&gt;
  </code></pre>
  
  <p>To test I have been adding a background color on the lblPSSName.  In the iOS project everything is fine.  In the Android project, the UI is not updated.  I am running the Android app on a Physical Device (a Digiland Tablet).  </p>
  
  <p>The only way I seem to be able to get the app to update on the Android tablet is to delete the app and change the configuration back and forth between Debug and Release (i.e. if it was debug on the last run, change it to release etc.)</p>
  
  <p>The results of my Testing testing is as follows:  ((I un-install the app between each test)
  On Emulator in Release Mode  - Changes are visible</p>
  
  <p>On Emulator in Debug Mode  - Changes are not visible </p>
  
  <p>On Digiland Tablet in Debug Mode - Changes are not visible
  On Digiland Tablet in Release Mode - Changes are not visible
  On Android Tablet emulator in Debug Mode - Changes are not visible</p>
  
  <p>On Android Tablet emulator in Release Mode - Changes are not visible</p>
  
  <p>I have tried the recommendations in all these article and they made no difference:</p>
  
  <p><a href="https://stackoverflow.com/questions/9845419/user-interface-not-reflecting-changes-i-make">User Interface Not Reflecting Changes i make</a></p>
  
  <p><a href="https://forums.xamarin.com/discussion/45327/newest-version-of-code-not-always-deployed-when-debugging-from-xamarin-studio" rel="nofollow noreferrer">https://forums.xamarin.com/discussion/45327/newest-version-of-code-not-always-deployed-when-debugging-from-xamarin-studio</a></p>
  
  <p><a href="https://stackoverflow.com/questions/45227700/xamarin-forms-android-vs2017-debug-not-showing-xaml-changes">Xamarin.Forms Android VS2017 debug not showing XAML changes</a></p>
  
  <p>I also tried changing some android options as seen below
  <a href="https://i.stack.imgur.com/h4x2B.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/h4x2B.png" alt="enter image description here"></a></p>
  
  <p>I turned off Enable Accelerated Rendering and enabled Refresh layout preview on code changes.</p>
  
  <p>If anyone has some ideas as to how to resolve this I would grealty appreciate it.  To be clear I was having the happen a while ago - then it went away.  Several updates later - it appears to be back but only for Android this time.  Below is everything from my VS About page.</p>
  
  <p>Microsoft Visual Studio Professional 2019
  Version 16.5.2
  VisualStudio.16.Release/16.5.2+29926.136
  Microsoft .NET Framework
  Version 4.8.03752</p>
  
  <p>Installed Version: Professional</p>
  
  <p>Visual C++ 2019   00435-20050-31374-AA182
  Microsoft Visual C++ 2019</p>
  
  <p>ADL Tools Service Provider   1.0
  This package contains services used by Data Lake tools</p>
  
  <p>ASA Service Provider   1.0</p>
  
  <p>ASP.NET and Web Tools 2019   16.5.236.49856
  ASP.NET and Web Tools 2019</p>
  
  <p>ASP.NET Web Frameworks and Tools 2019   16.5.236.49856
  For additional information, visit <a href="https://www.asp.net/" rel="nofollow noreferrer">https://www.asp.net/</a></p>
  
  <p>Azure App Service Tools v3.0.0   16.5.236.49856
  Azure App Service Tools v3.0.0</p>
  
  <p>Azure Data Lake Node   1.0
  This package contains the Data Lake integration nodes for Server Explorer.</p>
  
  <p>Azure Data Lake Tools for Visual Studio   2.4.5000.0
  Microsoft Azure Data Lake Tools for Visual Studio</p>
  
  <p>Azure Functions and Web Jobs Tools   16.5.236.49856
  Azure Functions and Web Jobs Tools</p>
  
  <p>Azure Stream Analytics Tools for Visual Studio   2.4.5000.0
  Microsoft Azure Stream Analytics Tools for Visual Studio</p>
  
  <p>C# Tools   3.5.0-beta4-20153-05+20b9af913f1b8ce0a62f72bea9e75e4aa3cf6b0e
  C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.</p>
  
  <p>Common Azure Tools   1.10
  Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.</p>
  
  <p>Extensibility Message Bus   1.2.0 (d16-2@8b56e20)
  Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.</p>
  
  <p>Fabric.DiagnosticEvents   1.0
  Fabric Diagnostic Events</p>
  
  <p>IntelliCode Extension   1.0
  IntelliCode Visual Studio Extension Detailed Info</p>
  
  <p>Microsoft Azure HDInsight Azure Node   2.4.5000.0
  HDInsight Node under Azure Node</p>
  
  <p>Microsoft Azure Hive Query Language Service   2.4.5000.0
  Language service for Hive query</p>
  
  <p>Microsoft Azure Service Fabric Tools for Visual Studio   16.0
  Microsoft Azure Service Fabric Tools for Visual Studio</p>
  
  <p>Microsoft Azure Stream Analytics Language Service   2.4.5000.0
  Language service for Azure Stream Analytics</p>
  
  <p>Microsoft Azure Stream Analytics Node   1.0
  Azure Stream Analytics Node under Azure Node</p>
  
  <p>Microsoft Azure Tools   2.9
  Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30207.1</p>
  
  <p>Microsoft Continuous Delivery Tools for Visual Studio   0.4
  Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.</p>
  
  <p>Microsoft JVM Debugger   1.0
  Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines</p>
  
  <p>Microsoft Library Manager   2.1.25+gdacdb9b7a1
  Install client-side libraries easily to any web project</p>
  
  <p>Microsoft MI-Based Debugger   1.0
  Provides support for connecting Visual Studio to MI compatible debuggers</p>
  
  <p>Microsoft Visual C++ Wizards   1.0
  Microsoft Visual C++ Wizards</p>
  
  <p>Microsoft Visual Studio Process Editor   1.0
  Process Editor for Microsoft Visual Studio Team Foundation Server</p>
  
  <p>Microsoft Visual Studio Tools for Containers   1.1
  Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit &amp; refresh your app without having to rebuild the container.</p>
  
  <p>Microsoft Visual Studio VC Package   1.0
  Microsoft Visual Studio VC Package</p>
  
  <p>Mono Debugging for Visual Studio   16.5.514 (c4f36a9)
  Support for debugging Mono processes with Visual Studio.</p>
  
  <p>NuGet Package Manager   5.5.0
  NuGet Package Manager in Visual Studio. For more information about NuGet, visit <a href="https://docs.nuget.org/" rel="nofollow noreferrer">https://docs.nuget.org/</a></p>
  
  <p>ProjectServicesPackage Extension   1.0
  ProjectServicesPackage Visual Studio Extension Detailed Info</p>
  
  <p>SQL Server Data Tools   16.0.62003.05170
  Microsoft SQL Server Data Tools</p>
  
  <p>ToolWindowHostedEditor   1.0
  Hosting json editor into a tool window</p>
  
  <p>TypeScript Tools   16.0.20225.2001
  TypeScript Tools for Microsoft Visual Studio</p>
  
  <p>Visual Basic Tools   3.5.0-beta4-20153-05+20b9af913f1b8ce0a62f72bea9e75e4aa3cf6b0e
  Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.</p>
  
  <p>Visual C++ for Cross Platform Mobile Development (Android)   16.0.29814.53
  Visual C++ for Cross Platform Mobile Development (Android)</p>
  
  <p>Visual F# Tools 10.8.0.0 for F# 4.7   16.5.0-beta.20104.8+7c4de19faf36647c1ef700e655a52350840c6f03
  Microsoft Visual F# Tools 10.8.0.0 for F# 4.7</p>
  
  <p>Visual Studio Code Debug Adapter Host Package   1.0
  Interop layer for hosting Visual Studio Code debug adapters in Visual Studio</p>
  
  <p>Visual Studio Container Tools Extensions (Preview)   1.0
  View, manage, and diagnose containers within Visual Studio.</p>
  
  <p>Visual Studio Tools for Containers   1.0
  Visual Studio Tools for Containers</p>
  
  <p>Visual Studio Tools for Kubernetes   1.0
  Visual Studio Tools for Kubernetes</p>
  
  <p>VisualStudio.DeviceLog   1.0
  Information about my package</p>
  
  <p>VisualStudio.Foo   1.0
  Information about my package</p>
  
  <p>VisualStudio.Mac   1.0
  Mac Extension for Visual Studio</p>
  
  <p>Xamarin   16.5.000.528 (d16-5@2b54082)
  Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.</p>
  
  <p>Xamarin Designer   16.5.0.470 (remotes/origin/d16-5@681de3fd6)
  Visual Studio extension to enable Xamarin Designer tools in Visual Studio.</p>
  
  <p>Xamarin Templates   16.5.49 (0904f41)
  Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms.</p>
  
  <p>Xamarin.Android SDK   10.2.0.100 (d16-5/988c811)
  Xamarin.Android Reference Assemblies and MSBuild support.
      Mono: c0c5c78
      Java.Interop: xamarin/java.interop/d16-5@fc18c54
      ProGuard: xamarin/proguard/master@905836d
      SQLite: xamarin/sqlite/3.28.0@46204c4
      Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-5@9f4ed4b</p>
  
  <p>Xamarin.iOS and Xamarin.Mac SDK   13.16.0.11 (aa73e41)
  Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.</p>