locked
XAML Previewer Shows "AndroidFormsPreviewerRenderer" RRS feed

  • Question

  • User393354 posted

    visual studio 2019 version 16.4.6

    STR: 1.Create a fresh Xamarin.Forms app 2.Open MainPage.xaml

    Expected result: Previewer renders the page

    Actual result: Preview shows a gray rectangle with the text “AndroidFormsPreviewerRenderer”

    Monday, March 16, 2020 3:31 AM

Answers

  • User382871 posted

    XAML Previewer Shows "AndroidFormsPreviewerRenderer" There is nothing wrong with the code. This issue is caused by the Visual Studio. Someone also faces the same problem and has reported it the product team. The team prioritizes action on product issues with broad customer impact. You could report this issue on the community.

    Check the link: https://developercommunity.visualstudio.com/content/problem/528954/xaml-previewer-androidformspreviewerrenderer-is-al.html

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, March 17, 2020 2:24 AM

All replies

  • User382871 posted

    Please check the following: * Try closing and reopening the XAML file. * Ensure that your App class has a parameterless constructor. * Check your Xamarin.Forms version - it has to be at least Xamarin.Forms 3.6. You can update to the latest Xamarin.Forms version through NuGet. * Check your JDK installation - previewing Android requires at least JDK 8. * Try wrapping any initialized classes in the page's C# code behind in if (!DesignMode.IsDesignModeEnabled).

    Check the tutorial: https://forums.xamarin.com/discussion/179816/xaml-previewer-shows-androidformspreviewerrenderer

    Monday, March 16, 2020 7:17 AM
  • User393354 posted

    I tried. But Symptoms still.

    • Xamarin.Forms version default 4.3.0.908675 , Update to latest version 4.5.0.356, Symptoms still.
    • JDK, I use vs default C:\Program Files\Android\Jdk\microsoftdistopenjdk_1.8.0.25
    Monday, March 16, 2020 8:03 AM
  • User382871 posted

    XAML Previewer Shows "AndroidFormsPreviewerRenderer" There is nothing wrong with the code. This issue is caused by the Visual Studio. Someone also faces the same problem and has reported it the product team. The team prioritizes action on product issues with broad customer impact. You could report this issue on the community.

    Check the link: https://developercommunity.visualstudio.com/content/problem/528954/xaml-previewer-androidformspreviewerrenderer-is-al.html

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Tuesday, March 17, 2020 2:24 AM