While creating a Xamarin Android application, after adding the reference to Infragistics Chart control and the Google Play services, we had to enable the 'Enable Multi-Dex' property to true (Since the app hit the dex method limit of 65K).
We are getting an error
..\CREATEMULTIDEXMAINDEXCLASSLIST: Error: Expecting class path separator ';' before '\Android\android-sdk\build-tools\21.1.1\lib\shrinkedAndroid.jar' in argument number 8
I am using Xamarin Studio Version 5.9 (build 431) Xamarin.Android Version: 5.1.0
Please help to fix this Issue in Xamarin.
We had the same problem on our build server, and we've had to move the Android SDK to a path with no spaces e.g. C:\android-sdk\...
Obviously we needed to update the ANDROID_HOME environment variable to the new path, and set the SDK paths in Xamarin Studio and Visual Studio.
This has solved the problem for us.
For those who don´t want to change the Android SDK actual location plus ANDROID_HOME env variable, a simple link is enough:
mklink /D "C:\android-sdk" "C:\Program Files (x86)\Android\android-sdk"
For future reference, there is also a bug if you have JDK 1.8 installed..
See this thread https://bugzilla.xamarin.com/show_bug.cgi?id=44013
Unfortunately the actual bug is inaccessible to general public.. https://bugzilla.xamarin.com/show_bug.cgi?id=42669