System.ArgumentNullException: 值不能为null。
参数名:path1
在System.IO.Path.Combine(String path1, String path2)
在Xamarin.AndroidTools.AndroidSDK.get_AdbExe()
在Mono.Android.VisualStudio.MonoAndroidDeviceManager..ctor()
在Mono.Android.VisualStudio.MonoAndroidSDK.get_DeviceManager()
在Mono.Android.VisualStudio.MonoAndroidPackage.Initialize()
这个是由于注册表问题:
步骤1,在运行里输入注册表命令regedit 打开注册表,在Novell下找到mono for android步骤2,点击mono for android 显示其中的注册表,找到AndroidSdkDirectory表,单击更改成你对于的android sdk路径。
步骤3,打开visual studio,在工具——》选项——》mono for android处看路径是否和你更改的一致,勾选emulator/device debugging的第一个选项 下面的全都不勾选 确定就ok了。