Xamarin Android: Failed to resolve type MvvmCross.Core.ViewModels.IMvxAppStart

Trying to start a project (Xamarin Android) of another developer. The application is compiled successfully, first view shown correctly, it's okay. But after a moment, then I get an error:

MvvmCross.Platform.Exceptions.MvxIoCResolveException: Failed to resolve type MvvmCross.Core.ViewModels.IMvxAppStart

Visual studio doesn't show any more information about the error, the debugger points to an empty string in MvxSimpleIoCContainer class.

Before opening the project reinstall VS, Xamarin, Android SDK etc. This project is absolutely correct, on another computer was working perfectly and without this exception. Unfortunately i have no access to those computer.

I will be glad to any prompts.

Error mesage:

Visual Studio after clicking "break":

Upvotes: 1

Views: 1899

Answers (1)

Tony Trembath-Drake
Tony Trembath-Drake

Reputation: 1678

I had the same issue,my problem was in the core'dll' app.cs

namespace Core
{
    public class App : MvxApplication
    {
        public override void Initialize()
        {
            CreatableTypes()
                .EndingWith("Service")
                .AsInterfaces()
                .RegisterAsLazySingleton();


            RegisterAppStart<ViewModels.FirstViewModel>();

I had no RegisterAppStart<ViewModels.FirstViewModel>(); line, change to use your first view.

Upvotes: 1

Related Questions