Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

xamarin

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?

like image 358
Maahir Avatar asked Aug 29 '18 03:08

Maahir


3 Answers

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.

like image 82
Ahmed Ahmedov Avatar answered Nov 05 '22 11:11

Ahmed Ahmedov


Updating nuget fixed my problem. For me root cause was Xamarin forms was not working due to the older versions of xamarin dlls. I updated all the dlls and worked.

like image 32
Srikanth Kotnala Avatar answered Nov 05 '22 11:11

Srikanth Kotnala


I had the same issue, Here is how i fix this error

1-Delete bin and obj folder from all projects.

2-clean and rebuild whole project.

3- Uninstall the app from emulator (device).

Run the project.

like image 35
Naveen Tiwari Avatar answered Nov 05 '22 13:11

Naveen Tiwari