title: Error with Autofac in Xamarin Android App
body: <p>I am using Autofac in a Xamarin project to build a Mobile App. I get the following error when building an Autofac container, in Xamarin Live Player 1.5.176 (676) (on a Huawei P20, last security patch) : </p>
  
  <blockquote>
    <p>[LogEntry: Time=01/07/2018 11:00:08 +02:00, Level=Error,
    Title=Visualization Error, Message=No body on method
    System.Collections.Generic.IEnumerable<code>1&lt;Autofac.Core.IComponentRegistration&gt;
    Autofac.Core.IRegistrationSource::RegistrationsFor(Autofac.Core.Service,System.Func</code>2>)
    (NInterpretException)]</p>
  </blockquote>
  
  <p>I made a solution to reproduce the issue : <a href="https://github.com/EhRom/XamarinAutofac/" rel="nofollow noreferrer">https://github.com/EhRom/XamarinAutofac/</a></p>
  
  <pre><code>// Initialiaze container builder.
  var containerBuilder = new ContainerBuilder();
  
  containerBuilder.RegisterType&lt;SampleViewModel&gt;().As&lt;ISampleViewModel&gt;();
  
  // Build container.
  container = containerBuilder.Build();
  </code></pre>
  
  <p>The error occurs on the Build() method. I tried to add options, with no success.</p>
  
  <p>Have you ever encountered this problem ? How can I solve this ?</p>
  
  <p>The error is not reproduced on the local emulator (without Xamarin Live Player).</p>