VISUAL STUDIO MAC ANDROID EMULATOR NOT WORKING INSTALL
It's like a Mono repair it seems.Ģ- Go to Tools > Android > Android SDK Manager.ģ- Install your desired Android with all its components. SOLUTION FOR MANY ISSUES THAT I'VE FACED:Īs user5389726598465 mentioned, "Switching from Android 9.0 Emulator to Android 8 Oreo image" makes Visual Studio to uninstall a Mono shared runtime and install a new one. If you still get this via uninstalling on the GUI, try the adb command: The simple fix here is to go to your emulator, delete the app manually, then try deploying again.
This one normally occurs when an existing version of your app is on the emulator and not being updated correctly to the new version you are trying to install. Xamarin failed to deploy app to emulator with: "Unexpected install, In my case it helped to do a Factory Reset of the emulation device in the Android Device Manager. In my case it helped to do a Factory Reset of the emulation device in the Android Device Manager. Choosing "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" arbitrarily.ġ>C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.9\bin\keytool.exe -list -alias androiddebugkey -storepass android -keypass android -keystore "C:\Users\sticker592\AppData\Local\Xamarin\Mono for Android\debug.keystore"ġ>C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\zipalign.exe -p 4 "C:\Users\sticker592\Downloads\FirstApp\AwesomeApp\AwesomeApp.Android\obj\Debug\81\android\bin\" "bin\Debug\\"ġ>C:\Program Files\Android\jdk\microsoft_dist_openjdk_1.8.0.9\bin\java.exe -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\25.0.3\lib\apksigner.jar" sign -ks "C:\Users\sticker592\AppData\Local\Xamarin\Mono for Android\debug.keystore" -ks-pass pass:android -ks-key-alias androiddebugkey -key-pass pass:android -min-sdk-version 21 -max-sdk-version 27 C:\Users\sticker592\Downloads\FirstApp\AwesomeApp\AwesomeApp.Android\bin\Debug\ġ>: Unexpected install output: cmd: Can't find service: packageġ> at .CheckInstallSuccess(String output, String packageName) in E:\A\_work\413\s\External\androidtools\Mono.AndroidTools\Internal\AdbOutputParsing.cs:line 345ġ> at _Displa圜lass95_0.b_0(Task`1 t) in E:\A\_work\413\s\External\androidtools\Mono.AndroidTools\AndroidDevice.cs:line 753ġ> at `1.InnerInvoke()ġ> at .Execute()ġ>ADB0010: Unexpected install output: cmd: Can't find service: packageġ>Done building project "" - FAILED. I'm building the sample intro xamarin forms app With Visual studio 2019 and the emulator boots up but the app doesn't deploy with the error Unexpected install output: cmd: Can't find service: package": 1>No way to resolve conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e".