C# – Xamarin.Forms Errors (ADB0000:Value Cannot be null)

cxamarin

What does this even mean? I had my program running and deploying fine and then the next day this error popped up?

Severity Code Description Project File Line Suppression State Tool
Error ADB0000: Value cannot be null. Parameter name: path2 at
System.IO.Path.Combine(String path1, String path2, String path3) at
Xamarin.AndroidTools.PlatformPackage.GetVersionInfo(String
frameworkVersion) at
Xamarin.AndroidTools.PlatformPackage.GetPlatformPackageVersion(Int32
apiLevel, String& packageName) at
AndroidDeviceExtensions.d__33.MoveNext()
— End of stack trace from previous location where exception was thrown — at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at AndroidDeviceExtensions.d__27.MoveNext()
— End of stack trace from previous location where exception was thrown — at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Xamarin.AndroidTools.AndroidDeploySession.d__101.MoveNext()
— End of stack trace from previous location where exception was thrown — at
System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task
task) at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Xamarin.AndroidTools.AndroidDeploySession.d__99.MoveNext()
0

I was trying to follow an online YouTube tutorial (https://www.youtube.com/watch?v=eAZ4kPf5eTc) and it worked fine until I got this error?

Best Answer

I just had the same issue. The fix for me was: In Android emulator hold the app icon and move it to uninstall. Rebuild, deploy and run from VS 2017.