We have been working on a cross-platform iOS/Android application and our builds are handled via TFS 2012. On a pretty regular basis, our builds fail due to the following error:
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets (1138): "java.exe" exited with code 1.
Inspecting the above targets file at the specified line, the intermittent failures occur on CompileToDalvik. The error logs don't provide any useful information other than this:
_CompileDex: JavaSourceFiles: JavaLibraries: ExternalJavaLibraries: C:\Program Files\Java\jdk1.6.0_33\bin\java.exe -jar "C:\Program Files (x86)\Android\android-sdk\build-tools\17.0.0\lib\dx.jar" --no-strict --dex --output=obj\Release\android\bin\classes.dex obj\Release\android\bin\classes "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v2.3\mono.android.jar" C:\Builds\1..\obj\Release__library_projects__\ab_sherlock.jar C:\Builds\1..\obj\Release__library_projects__\android-support-v4.jar 3>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(1138,3): error MSB6006: "java.exe" exited with code 1.
Does anybody have any idea why these intermittent failures occur? Is there anything we can do to get more useful error information?
Thanks! Scott