Bug 52975 - [XVS 2017-Dev15 RTW] Build error "CREATEMULTIDEXMAINDEXCLASSLIST:error" on building sample app with "Multi-Dex" enabled
Summary: [XVS 2017-Dev15 RTW] Build error "CREATEMULTIDEXMAINDEXCLASSLIST:error" on bu...
Status: RESOLVED DUPLICATE of bug 33052
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 7.2 (15.1)
Hardware: PC Windows
: --- major
Target Milestone: 15.1
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2017-03-02 15:39 UTC by Jacky Waswani
Modified: 2017-04-06 19:31 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: No
Last known good build:


Attachments
Xamarin Logs (66.14 KB, application/x-zip-compressed)
2017-03-28 12:07 UTC, Alok Kulkarni
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED DUPLICATE of bug 33052

Description Jacky Waswani 2017-03-02 15:39:56 UTC
Build error observed on building sample app with "Multi-Dex" enabled.

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

Steps:
1.Create a sample single view Android application.
2.Navigate to Properties>Android options and check the "Enable Multi-Dex" option.
3.Build the solution.

Expected result:
Application should build successfully.

Actual result:
Build error observed.

Screencast:
http://www.screencast.com/t/PTHuPDK51

Link for reference from Xamarin Forum:
https://forums.xamarin.com/discussion/87444/createmultidexmaindexclasslist-error-expecting-class-path-separator-before-android-android
Comment 1 smorsi27 2017-03-14 01:09:23 UTC
I have the same issue when I set multi-dex option to checked. I'm on Windows 10 running Visual Studio 2015.
Comment 2 smorsi27 2017-03-14 01:36:13 UTC
This is the error: 		

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

File: CREATEMULTIDEXMAINDEXCLASSLIST
Comment 3 Alok Kulkarni 2017-03-28 12:06:43 UTC
Same bug was found in VS 2017, Attaching logs and screencast link.

Environment:

Microsoft Visual Studio Enterprise 2017 d15rel
Version 15.1 (26324.1) d15rel d15rel
VisualStudio.15.int.d15rel/15.1.0+26324.1.d15rel
Microsoft .NET Framework
Version 4.6.01586

Installed Version: Enterprise

Architecture Diagrams and Analysis Tools   00369-60000-00001-AA398
Microsoft Architecture Diagrams and Analysis Tools

Visual Basic 2017   00369-60000-00001-AA398
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA398
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA398
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA398
Microsoft Visual F# 4.1

ASP.NET and Web Tools 2017   15.0.30320.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Hive Query Language Service   2.2.5000.0
Language service for Hive query

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

Node.js Tools   1.3.50316.00
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager   4.1.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Office Developer Tools for Visual Studio 2017 ENU   15.0.26112
Microsoft Office Developer Tools for Visual Studio 2017 ENU

Redgate ReadyRoll   1.13.22.3147
Extend DevOps processes to your SQL Server databases and safely automate database deployments.
    
Visit https://www.red-gate.com/readyroll for more information.

Copyright (C) 2011 Red Gate Software Ltd. All rights reserved.
  
This software contains components from Component Owl.
SQL Server is a registered trademark of Microsoft Corporation. 
Visual Studio is a registered trademark of Microsoft Corporation. 

ReadyRoll contains code from the following open source software:

NuGet https://www.nuget.org/
SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
Autofac https://autofac.org/
Json.NET https://json.net/
MahApps.Metro http://mahapps.com/
SemVer https://github.com/maxhauser/semver
Menees Diff Controls http://www.menees.com/
Log4Net http://logging.apache.org/log4net/
Extended WPF Toolkit https://wpftoolkit.codeplex.com/
Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
OctoPack https://github.com/OctopusDeploy/OctoPack
SQLite https://sqlite.org/

This product contains icons from http://www.visualpharm.com distributed under a free backlink license.

For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the ReadyRoll application folder.
    

Redgate SQL Prompt   7.4.1.767
Write, format, and refactor SQL effortlessly

Redgate SQL Search   2.3.10.1131
Search functionality for SQL Server databases, from within Visual Studio

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript   2.1.5.0
TypeScript tools for Visual Studio

Visual C++ for Cross Platform Mobile Development (Android)   15.0.26228.00
Visual C++ for Cross Platform Mobile Development (Android)

Visual C++ for Linux Development   1.0.6
Visual C++ for Linux Development

Visual Studio Tools for Apache Cordova   15.113.6201.1
Visual Studio Tools for Apache Cordova

Visual Studio tools for CMake   1.0
Visual Studio tools for CMake

Visual Studio Tools for Universal Windows Apps   15.0.26324.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Workflow Manager Tools 1.0   1.0
This package contains the necessary Visual Studio integration components for Workflow Manager.

Xamarin   4.4.0.18 (f204cf0)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK   7.2.0.6 (b8e3884)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK   10.8.0.27 (9c31d85)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.

Screencast: http://www.screencast.com/t/g0UhKZ4zcsvr
Comment 4 Alok Kulkarni 2017-03-28 12:07:43 UTC
Created attachment 20945 [details]
Xamarin Logs
Comment 5 Brendan Zagaeski (Xamarin Team, assistant) 2017-03-30 02:28:15 UTC
## Workaround

1. Update to XamarinVS 4.3.0.789 "Cycle 9 Service Release 0" [1] or higher [2].

2. Move the Android SDK folder ("Tools > Options > Xamarin > Android Settings > Android SDK Location") to a path that contains no spaces (such as C:\android-sdk).

3. Update "Tools > Options > Xamarin > Android Settings > Android SDK Location" to the new location.

4. Restart Visual Studio.



[1] https://releases.xamarin.com/service-release-cycle-9/

[2] (XamarinVS 4.3.0.789 includes the fix for Bug 52695.  Without that fix, the "Android Settings" menu will lock up at step 3 when trying to display the normal expected error message about how it cannot find the Android SDK at the old location anymore.)




## Regression status: not a recent regression



### BAD results in XamarinVS 4.3.0.784 (73f58d6), Xamarin.Android 7.1.0.41 (9578cdc)

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


### BAD results in XamarinVS 4.2.2.11  (00fa5cc), Xamarin.Android 7.0.2.42 (501e63c)

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


### BAD results in XamarinVS 4.1.0.530 (2e39740), Xamarin.Android 6.1.0.71 (4e27558)

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

*** This bug has been marked as a duplicate of bug 33052 ***