Xamarin Forms application error MSB6006: "java.exe" exited with code 2.

teja 16 Reputation points
2022-04-29T12:47:55.883+00:00

Hi All,

I'm getting the below error in VS2019 when trying to debug a Xamarin Forms app on Android emulator.

MSB6006: "java.exe" exited with code 2.

197802-capture.png

Developer technologies | .NET | Xamarin
{count} vote

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.