Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report for Bug 57417 on
Developer Community if you have new
information to add and do not yet see a matching new report.
If the latest results still closely match this report, you can use the
Created attachment 22844 [details]
Exception in the previewer.
Visual Studio Community 2017
Forms Project Support version 7.0.1
Create a simple Xamarin.Forms (PCL) project.
Try to use a custom font from Google - https://fonts.google.com/specimen/Tangerine
<?xml version="1.0" encoding="utf-8"?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:PersonalIncome3" x:Class="PersonalIncome3.PersonalIncome3Page">
<Label Text="Welcome to Xamarin Forms!"
In the iOS previewer everything ok.
In the Android(!) previewer I see an error. And it can't render the page.
System.NullReferenceException was thrown. Object reference not set to an instance of an object.
When I am running it in the Android emulator then it shows the label and font normally.
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue, we would very much appreciate it.
I also have the same problem.
Here's a solution which produces the same problem.
I added 2 pages to an out of the box Xamarin Forms PCL solution. The font has been added to both the iOS and the Android project.
When running in the emulator everything is dandy but the forms previewer for Android wont have it.
I didn't bother for any finesse: there are 2 pages: one using the iOS fontname and one using the droid fontname. The app goes to the droid version.
please help us!
Created attachment 23473 [details]
Sample solution that reproduces the error
Thanks so much for taking the time to submit this report! I can confirm using the latest Visual Studio 2017 Preview version 15.3 I am able to reproduce this issue. Marking this report as CONFIRMED.
*** Bug 57942 has been marked as a duplicate of this bug. ***