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

“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


Thanks, for reading the blog, I hope it helps you. Please share this link on your social media accounts so that others can read our valuable content. Share your queries with our expert team and get Free Expert Advice for Your Business today.


About Writer

Ravinder Singh

Full Stack Developer
I have 12+ years of experience in commercial software development. I write this blog as a kind of knowledge base for myself. When I read about something interesting or learn anything I will write about it. I think when writing about a topic you concentrate more and therefore have better study results. The second reason why I write this blog is, that I love teaching and I hope that people find their way on here and can benefit from my content.

Hire me on Linkedin

My portfolio

Ravinder Singh Full Stack Developer