Skip to content

Set IContainer threw an exception #7

@rgrastur

Description

@rgrastur

I have an exception in this line in ViewModelLocator.cs when launch the App in my device.
container = containerBuilder?.Build();

image

image

StackTrace:
at (wrapper managed-to-native) System.Object._icall_wrapper_mono_generic_class_init(intptr)
at LoanCalculator.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x00056] in C:\Users\glezr\source\repos\xamarin-showcase-emi-calculator\LoanCalculator.Android\MainActivity.cs:26
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle
(System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x00011] in :0
at (wrapper dynamic-method) Android.Runtime.DynamicMethodNameCounter.3(intptr,intptr,intptr)

Any idea what am I doing wrong?

My device: Xiaomi Redmi Note 5 - Android 9.0
Visual Studio Community 2019 16.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions