title: MvvmCross Data Layer is unaccessible in case of Android App
body: <p>I am using the MvvmCross for application for android and Windows . We have one XML data file from where I am accessing the data and returning the list to Business Layer where that data is being operated and transferred to ViewModel via Service . </p>
  
  <pre><code> public class Logic : ILogic
  {
  
      #region Attributes
  
      List&lt;Detail.Detail&gt; _details = new List&lt;Detail.Detail&gt;();
      DataLayer.DataLayer dl = new DataLayer.DataLayer();
  
      #endregion
  
      #region .ctor
  
      public Logic()
      {
  
      }
    List&lt;Detail.Detail&gt; ILogic.Read()
      {
  
          _details = dl.Access();
          return _details;
          throw new NotImplementedException();
      }
  }
  </code></pre>
  
  <blockquote>
    <p>Above Code transfers the data to the ViewModel code given below .</p>
  </blockquote>
  
  <pre><code> public class BookViewModel : MvxViewModel
  
  
   {
  
  
   public BookViewModel()
     {
         var aa = Mvx.Resolve&lt;ILogic&gt;();
         this.logic = aa;
        _details = logic.Read();
  
     }
  }
  </code></pre>
  
  <p>Now the code is giving this error : </p>
  
  <blockquote>
    <p>Cirrious.CrossCore.Exceptions.MvxException: Failed to construct and
    initialize ViewModel for type ViewModels.ViewModels.BookViewModel from
    locator MvxDefaultViewModelLocator - check MvxTrace for more
    information</p>
  </blockquote>
  
  <p>On this line in BookView Class :</p>
  
  <pre><code> protected override void OnCreate(Bundle bundle)
      {
  
          base.OnCreate(bundle);
          SetContentView(Resource.Layout.View_Hello);
  
      }
  </code></pre>
  
  <p>I am not getting that when the same DataLayer is getting the data from XML file then why does it get ViewModel resolve issue in the Android build .</p>