前提・実現したいこと
Xamarinを使いたく、環境構築をしています。新しくプロジェクトをxamarin.formsで作った際に以下のエラーが出てandroidの方のデバックができません。iosの方は問題なくWelcome to Xamarin.Formsと表示されます。
ソースコードの方はデフォルトのままで何も手を加えておりません。
発生している問題・エラーメッセージ
System.NullReferenceException: Object reference not set to an instance of an object at Xamarin.Designer.Forms.Preview.iOSXamlRenderer+<RenderXamls>d__3.MoveNext () [0x00187] in /Users/vsts/agent/2.140.0/work/1/s/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/iOS/iOSXamlRenderer.cs:49
該当のソースコード
<?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:drink" x:Class="drink.MainPage"> <StackLayout> <!-- Place new controls here --> <Label Text="Welcome to Xamarin.Forms!" HorizontalOptions="Center" VerticalOptions="CenterAndExpand" /> </StackLayout> </ContentPage>
あなたの回答
tips
プレビュー