I've run into a problem whilst developing an android app in visual studio. For some reason, and I have been fighting with this for hours and found no cause for this to happen in the code, the project fails to build every time, citing the error:
"java.exe" exited with code 2.
The output log also says:
Done executing task "CompileToDalvik" -- FAILED.
I can tell you I have set the Java Heap size to 1G, uninstalled and reinstalled Xamarin, tried several clean and rebuilds, and nothing seems to work. Deleting the debug folder from the bin and obj files and restarting Visual Studio/the computer also made no difference.
Anyone encountered this before? If so how did you solve it?