so I have my Xamarin.Android project which contains several libraries. When I try to build I receive an error which says \"java.exe\" exited with code 2.
After some
After finding this question and @Daniel_97s answer I was able to solve this error only by adding multidex to the project without changing MainDexClasses.bat:
Add MultiDexApplication
to Android Manifest:
Note I was getting this error code 2 on Visual Studio for Mac and on Windows the same app was building successfully. (why?)