locked
CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ';' before '\Android\android RRS feed

  • Question

  • User77073 posted

    Hi

    I have been trying to update to the latest version of Xamarin yesterday and today.

    When I try to deploy to my device I get the following error

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

    I believe this is fixed by https://bugzilla.xamarin.com/show_bug.cgi?format=multiple&id=51356

    Can someone tell me when this is going to be in a stable release. or tell me a workaround for fixing it.

    So for the last couple of hours I have been trying to downgrade the version installed.

    Xamarin.VisualStudio4.2.2.6.msi - As described about this issue exists Xamarin.VisualStudio4.2.0.695.msi - Same problem Xamarin.VisualStudio4.2.0.680.msi - Same problem Xamarin.VisualStudio4.1.2.18.msi - Fails to install Xamarin.VisualStudio_4.1.1.3.msi - Fails to install

    I don't think I have ever upgraded Xamarin without issues like this.

    This is an urgent issue that needs a new release with the fix in it. Can someone from the Xamarin/Microsoft team let me know what is happening.

    Thanks

    Friday, January 27, 2017 12:45 PM

All replies

  • User298181 posted

    Hi

    As workaround you can try: 1) move (or create symbolic link) Android SDK to path without spaces and special symbols, i.e. move from "c:\Program Files (x86)\Android\android-sdk\" to "c:\android\android-sdk\" 2) change Android SDK path in Xamarin settings in VS (Tools - Options - Xamarin - Android Settings - Android SDK Location)

    Tuesday, February 7, 2017 10:12 PM
  • User176749 posted

    Symbolic link doesnt work on VS2017 Preview if you intent to use Xamarin live

    Friday, May 19, 2017 10:38 PM
  • User22991 posted

    @kb0 solution worked for me.

    Sunday, June 18, 2017 5:19 AM
  • User154501 posted

    softlink didn't work, hard link did: https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/

    mklink /J e:\android\sdkhl "c:\Program Files (x86)\Android\android-sdk"
    
    Monday, July 10, 2017 4:04 AM
  • User261122 posted

    This info is helpful for local builds, and it allowed my local build to succeed. How do I go about accomplishing a similar modification on my VSTS build server? I've looked around at the Xamarin.Android build task and searched online for solutions but have found none. Anyone else encountered this issue on their VSTS build server?

    2017-07-10T19:00:23.0600871Z SetLatestTargetFrameworkVersion: 2017-07-10T19:00:23.0600871Z sdk Looking for Android NDK.. 2017-07-10T19:00:23.0600871Z sdk Key HKCU\SOFTWARE\Xamarin\VisualStudio\15.087bd2a10\Android\AndroidNdkDirectory not found. 2017-07-10T19:00:23.0600871Z sdk Key HKLM\SOFTWARE\Xamarin\VisualStudio\15.087bd2a10\Android\AndroidNdkDirectory not found. 2017-07-10T19:00:23.0620911Z Found Android SDK. API levels: 19, 21, 22, 23, 24, 25 2017-07-10T19:00:23.3982731Z _ResolveMonoAndroidSdks: 2017-07-10T19:00:23.3982731Z MonoAndroid Tools: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\ 2017-07-10T19:00:23.3982731Z MonoAndroid Binaries: C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Xamarin\Android\ 2017-07-10T19:00:23.3982731Z Android NDK: \ 2017-07-10T19:00:23.3982731Z Android SDK: C:\Program Files (x86)\Android\android-sdk\ 2017-07-10T19:00:23.3982731Z Java SDK: C:\Program Files (x86)\Java\jdk1.8.0112\ 2017-07-10T19:00:23.3982731Z Android Platform API level: 25 2017-07-10T19:00:23.3982731Z TargetFrameworkVersion: v7.1

    2017-07-10T19:01:12.8036596Z "d:\a\1\s\BFS\AppDevelopment\BFSMobileApp\BFSMobileApp.Droid\BFSMobileApp.Droid.csproj" (PackageForAndroid target) (1) -> 2017-07-10T19:01:12.8036596Z (_CompileToDalvikWithDx target) -> 2017-07-10T19:01:12.8036596Z CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ';' before '\Android\android-sdk\build-tools\25.0.2\lib\shrinkedAndroid.jar' in argument number 8 [d:\a\1\s\BFS\AppDevelopment\BFSMobileApp\BFSMobileApp.Droid\BFSMobileApp.Droid.csproj] 2017-07-10T19:01:12.8036596Z 2017-07-10T19:01:12.8036596Z 25 Warning(s) 2017-07-10T19:01:12.8036596Z 1 Error(s) 2017-07-10T19:01:12.8036596Z 2017-07-10T19:01:12.8036596Z Time Elapsed 00:00:53.20

    Monday, July 10, 2017 8:41 PM
  • User261122 posted

    This line being the core of the issue: *Android SDK: C:\Program Files (x86)\Android\android-sdk*

    Monday, July 10, 2017 8:42 PM
  • User268614 posted

    It worked for me. Thanks

    Tuesday, July 18, 2017 5:00 AM