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.
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.
I find a similar thread in GitHub about this error.
You can try to enable Multi-Dex( right click your android project folder in VS, select properties. choose Android Options, select Multi-Dex), after that, rebuild & clean (delete all bin\obj manually). If this issue will disappear.
If this issue is still existed, please update your VS 2019 to the latest, can you share a full build log?
7 people are following this question.