I have an Xamarin Form Portable with Android and iOS. The booth compile well in Debug mode and iOS in release mode, but the Android version crash when it's going to open the first view after the splash screen. I get the following Error.
08-31 15:09:15.340 I/MonoDroid(14328): UNHANDLED EXCEPTION:
08-31 15:09:15.410 I/MonoDroid(14328): FreshTinyIoC.TinyIoCResolutionException: Resolve failed: ProfileViewModel - Reason: Method 'FreshMvvm.FreshBasePageModel..ctor' not found. ---> System.MissingMethodException: Method 'FreshMvvm.FreshBasePageModel..ctor' not found.
08-31 15:09:15.410 I/MonoDroid(14328): at Comca.BaseApiViewModel..ctor (Comca.Services.IApiManager apiService) [0x00000] in <5c45f93e5ab44ccb819688f99c285bbb>:0
08-31 15:09:15.410 I/MonoDroid(14328): at Comca.ViewModels.ProfileViewModel..ctor (Comca.Services.IApiManager apiManager) [0x00050] in <5c45f93e5ab44ccb819688f99c285bbb>:0
08-31 15:09:15.410 I/MonoDroid(14328): at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (System.Reflection.MonoCMethod,object,object[],System.Exception&)
08-31 15:09:15.410 I/MonoDroid(14328): at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in <183b200ee49746d48fc781625979428e>:0
08-31 15:09:15.410 I/MonoDroid(14328): --- End of inner exception stack trace ---
08-31 15:09:15.415 I/MonoDroid(14328): at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, System.Reflection.ConstructorInfo constructor, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x0018e] in <42927e06747b4ccfa37c616fee8f457f>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshTinyIoC.FreshTinyIoCContainer.ConstructType (System.Type requestedType, System.Type implementationType, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x00000] in <42927e06747b4ccfa37c616fee8f457f>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshTinyIoC.FreshTinyIoCContainer.ResolveInternal (FreshTinyIoC.FreshTinyIoCContainer+TypeRegistration registration, FreshTinyIoC.NamedParameterOverloads parameters, FreshTinyIoC.ResolveOptions options) [0x001eb] in <42927e06747b4ccfa37c616fee8f457f>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshTinyIoC.FreshTinyIoCContainer.Resolve (System.Type resolveType) [0x00011] in <42927e06747b4ccfa37c616fee8f457f>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshTinyIoC.FreshTinyIoCContainer.Resolve[ResolveType] () [0x00000] in <42927e06747b4ccfa37c616fee8f457f>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshMvvm.FreshTinyIOCBuiltIn.Resolve[ResolveType] () [0x00005] in <7c09c974ac3e4c3383245e68b5670ee7>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshMvvm.FreshPageModelResolver.ResolvePageModel[T] (System.Object initData) [0x00005] in <7c09c974ac3e4c3383245e68b5670ee7>:0
08-31 15:09:15.415 I/MonoDroid(14328): at FreshMvvm.FreshPageModelResolver.ResolvePageModel[T] () [0x00000] in <7c09c974ac3e4c3383245e68b5670ee7>:0
08-31 15:09:15.415 I/MonoDroid(14328): at Comca.App..ctor () [0x00048] in <5c45f93e5ab44ccb819688f99c285bbb>:0
08-31 15:09:15.415 I/MonoDroid(14328): at Comca.Droid.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x000c7] in :0
08-31 15:09:15.415 I/MonoDroid(14328): at Android.Support.V4.App.FragmentActivity.n_OnCreate_Landroid_os_Bundle_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_savedInstanceState) [0x0000f] in <04cc158da5c34bd0b89b2677fbb259e5>:0
08-31 15:09:15.415 I/MonoDroid(14328): at (wrapper dynamic-method) System.Object:d1122858-7c60-4eec-bf56-d592da3509f4 (intptr,intptr,intptr)
08-31 15:09:15.430 W/art (14328): JNI RegisterNativeMethods: attempt to register 0 native methods for android.runtime.JavaProxyThrowable
An unhandled exception occured.
Here is the FreshBasePageModel.
#region
Assembly FreshMvvm, Version=1.0.6071.17008, Culture=neutral, PublicKeyToken=null
#endregion
using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Runtime.CompilerServices;
using Xamarin.Forms;
namespace FreshMvvm
{
public abstract class FreshBasePageModel : INotifyPropertyChanged
{
public string PreviousNavigationServiceName;
public string CurrentNavigationServiceName;
protected FreshBasePageModel();
public ObservableCollection<ToolbarItem> ToolbarItems { get; set; }
public FreshBasePageModel PreviousPageModel { get; set; }
public Page CurrentPage { get; set; }
public IPageModelCoreMethods CoreMethods { get; set; }
public event PropertyChangedEventHandler PropertyChanged;
public event EventHandler PageWasPopped;
public virtual void Init(object initData);
public bool IsModalAndHasPreviousNavigationStack();
public void RaisePageWasPopped();
public virtual void ReverseInit(object returnedData);
protected void RaisePropertyChanged([CallerMemberName] string propertyName = null);
protected virtual void ViewIsAppearing(object sender, EventArgs e);
protected virtual void ViewIsDisappearing(object sender, EventArgs e);
}
}
Using the latest 2.2.0
Thanks for any help.