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

Xamarin Forms Android MethodAccessException

$
0
0

Since the upgrade to 15.5.1, my Xamarin project doesn't seem to work anymore.

When loading a page, I get this error:

System.MethodAccessException: Method Xamarin.Forms.View:.ctor ()' is inaccessible from method MyApp.MyPage.InitializeComponent ()'

However, this page is built exactly like my other pages which are working and I have no idea where to start searching. Any ideas where this comes from? I use Xamarin.Forms plugin version 2.5.0.121934.

Edit: This is the content of the auto generated file where the exception comes up:

public partial class MyPage : global::Xamarin.Forms.ContentPage {
     [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Forms.Build.Tasks.XamlG", "0.0.0.0")]
    private void InitializeComponent() {
        global::Xamarin.Forms.Xaml.Extensions.LoadFromXaml(this, typeof(MyPage));
    }
}

Viewing all articles
Browse latest Browse all 204402

Trending Articles