Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expecting class path separator ';' before '\Android\android-sdk\build-tools\23.0.1\lib\shrinkedAndroid.jar' in argument number 8

Tags:

Using VS 2015 for Xamarin development, when I attempt to build an Android project which has Enable Multi-Dex checked, I get the following error :-

Expecting class path separator ';' before '\Android\android-sdk\build-tools\23.0.1\lib\shrinkedAndroid.jar' in argument number 8

Any idea why this might be happening and how to resolve it?

like image 634
Paul Diston Avatar asked Aug 02 '16 10:08

Paul Diston


1 Answers

If your path to SDK location contains space, the build process will cause this issue.

Eg : If SDK Location is `C:\Program Files\Android\android-sdk, it has space between Program Files.

If your SDK is in Program Files renaming it by removing the space won't be feasible. So copy the SDK folder to some other location say C:\Android\ & set the Android SDK Path in Visual Studio to the new Location.

To change Android SDK location in Visual Studio, Tools->Options->Xamarin->Android Settings->Android SDK Location (Change)

like image 112
sJy Avatar answered Oct 10 '22 11:10

sJy