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

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.VisualStudio_4.2.2.6.msi - As described about this issue exists
Xamarin.VisualStudio_4.2.0.695.msi - Same problem
Xamarin.VisualStudio_4.2.0.680.msi - Same problem
Xamarin.VisualStudio_4.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

Tagged:

Posts

  • batmacibatmaci DEMember ✭✭✭✭✭

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

  • VisualsparkVisualspark AUMember

    @kb0 solution worked for me.

  • XamarinChetuXamarinChetu AUMember

    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"
    
  • MichaelSchulz.9315MichaelSchulz.9315 USMember ✭✭

    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.0_87bd2a10\Android\AndroidNdkDirectory not found.
    2017-07-10T19:00:23.0600871Z sdk Key HKLM\SOFTWARE\Xamarin\VisualStudio\15.0_87bd2a10\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.0_112\
    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

  • MichaelSchulz.9315MichaelSchulz.9315 USMember ✭✭

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

  • yurimmomyurimmom KRMember

    It worked for me. Thanks

Sign In or Register to comment.