Looking for a specific post? Checkout the Blog Index.

By Kimserey Lam with

Fix Xamarin Adb Version Mismatch

Nov 13th, 2016 - written by Kimserey with .

Today I would like to share with you how you can fix the following problem INSTALL_FAILED: /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.Debugging.targets: Warning: error: could not install *smartsocket* listener: Address already in use ADB server didn't ACK.

1
2
3
4
* failed to start daemon *
error: cannot connect to daemon
List of devices attached
adb server version (32) doesn't match this client (36); killing...

1. Problem

You might be running two different ADB and the versions collide.

2. Solution

Verify the ADB version used by Xamarin:

1
About Xamarin > Show details > Android SDK: [PATH]

Make sure the PATH is the same as the one referenced in Genymotion.

1
Genymotion > Settings > ADB > Use custom Android SDK tools > Put PATH in Android SDK

This means that the adb used by Xamarin Studio to perform all deployment commands will be the same as the daemon used by the VM.

If you see the error adb server version (32) doesn't match this client (36) it’s probably because the PATHs are different.

Once you have set the same path, your app should deploy properly.

Conclusion

Always make sure that your ADB path is the same for Xamarin and the VM you deploy to. If you have any question, leave a comment here or hit me Twitter @Kimserey_Lam! See you next time!

Other posts you will like!

Designed, built and maintained by Kimserey Lam.