Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

TypeLoadException with Xaml Compilation in Android

$
0
0

Attempted to switch to Xaml compilation by adding "[XamlCompilation(XamlCompilationOptions.Compile)]" to my Xaml pages as described here: https://developer.xamarin.com/guides/xamarin-forms/xaml/xamlc/. However, doing this results in a TypeLoadException (in Debug) or a linker failure (in Release). In both cases it is occurring in InitializeComponent(), and it is looking for, but cannot find, Xamarin.Forms.Internals.ResourceLoader.

Only happens in Android, not UWP. (Can't test iOS)

What am I doing wrong?


Viewing all articles
Browse latest Browse all 204402

Trending Articles