“java.exe” exited with code 2 Xamarin.Android project

Hello Guys!

If you are facing the following error in your android project:-

“java.exe” exited with code 2 Xamarin.Android project

then please follow the following steps:-

1: Open android project property 

2: Click on "Android Options"

3: Enable the "Enable Multi-Dex" option 


4: Build the project and I hope it will fix the issue.


Please post your comments.

Thanks