title: Xamarin deploying not working with Android
body: <p>I've set up a <strong>new</strong> Xamarin.Forms Project. I want to build and deploy it to an emulator or an Android device, but it is not working. In the Outputwindow of Visual Studio, the following error is displayed: </p>
  
  <blockquote>
    <p>The application could not be started. Ensure that the application has
    been installed to the target device and has a launchable activity
    (MainLauncher = true).</p>
  </blockquote>
  
  <p><strong>Update:</strong></p>
  
  <p>If I look in the build logs i can find following:</p>
  
  <blockquote>
    <p>2>Mono.AndroidTools.InstallFailedException: Unexpected install output:
    Error: Could not access the Package Manager.  Is the system running?</p>
    
    <p>2>   bei
    Mono.AndroidTools.Internal.AdbOutputParsing.CheckInstallSuccess(String
    output, String packageName)</p>
    
    <p>2>   bei
    Mono.AndroidTools.AndroidDevice.c__AnonStoreyD.&lt;>m__0(Task`1
    t)</p>
    
    <p>2>   bei
    System.Threading.Tasks.ContinuationTaskFromResultTask`1.InnerInvoke()</p>
    
    <p>2>   bei System.Threading.Tasks.Task.Execute()</p>
    
    <p>2>Deployment failed because of an internal error: Unexpected install
    output: Error: Could not access the Package Manager.  Is the system
    running?</p>
  </blockquote>