title: CREATEMULTIDEXMAINDEXCLASSLIST error when building xamarin.android using Multidex
body: <p><strong>Edit - Reduced to the root of the problem</strong></p>
  
  <p>I'm getting this error when Multi-Dex is enabled.</p>
  
  <blockquote>
    <p>CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ':' before '.jar' in argument number 2</p>
  </blockquote>
  
  <p>I have tracked it down to this jar file being included in the ProGuard command line:</p>
  
  <pre><code>obj/Debug/__library_projects__/DeviceAPI_Android/library_project_imports/DeviceAPI_Android.Jars.cw-deviceapi(2016.05.16).jar
  </code></pre>
  
  <p>It's the brackets in the file name which are causing the error. I've proved this by running the command in a terminal prompt with this jar file removed, and all works fine.</p>
  
  <p>So the question - where is this file coming from? Is it in Packages? I can't see it there.</p>
  
  <p>If I can find that I should be able to correct the name and build the project. </p>
  
  <p>I've tracked it down to a 3rd party binding library called DeviceAPI_Android.dll, which wraps a jar file for controlling the hardware barcode scanner. The jar file does indeed have the brackets and date in its filename.</p>
  
  <p>So the solution is one or more of:</p>
  
  <ul>
  <li><p>Get a new version of the binding library from the supplier with a better named jar file.</p></li>
  <li><p>Rebuild the library myself with a better named jar file. Potentially problematic because I'll have to create the transforms etc. from scratch.</p></li>
  <li><p>Adjust the build tooling/makefile to make the ProGuard command line more resilient to strangely named jar files.</p></li>
  </ul>
  
  <p>A sample project demonstrating the problem is on GitHub <a href="https://github.com/MicrosecLtdUk/MultiDexTest" rel="nofollow noreferrer">here</a>.  </p>
  
  <p><strong>Version Information:</strong>
  === Visual Studio Community 2017 for Mac ===</p>
  
  <p>Version 7.1 (build 1297)
  Installation UUID: 650b4c91-c7f5-4ee5-ad70-6f178f314906
  Runtime:
      Mono 5.2.0.215 (d15-3/da80840) (64-bit)
      GTK+ 2.24.23 (Raleigh theme)</p>
  
  <pre><code>Package version: 502000215
  </code></pre>
  
  <p>=== NuGet ===</p>
  
  <p>Version: 4.3.0.2418</p>
  
  <p>=== .NET Core ===</p>
  
  <p>Runtime: Not installed
  SDK: Not installed
  MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/Sdks</p>
  
  <p>=== Xamarin.Profiler ===</p>
  
  <p>Version: 1.5.5
  Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler</p>
  
  <p>=== Xamarin.Android ===</p>
  
  <p>Version: 7.4.0.21 (Visual Studio Community)
  Android SDK: /Users/jameslavery/Library/Developer/Xamarin/android-sdk-macosx
      Supported Android versions:
          2.3   (API level 10)
          4.0.3 (API level 15)
          4.1   (API level 16)
          4.3   (API level 18)
          4.4   (API level 19)
          5.0   (API level 21)
          5.1   (API level 22)
          6.0   (API level 23)
          7.0   (API level 24)
          7.1   (API level 25)</p>
  
  <p>SDK Tools Version: 25.2.5
  SDK Platform Tools Version: 25.0.5
  SDK Build Tools Version: 25.0.3</p>
  
  <p>Java SDK: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home
  java version "1.8.0_144"
  Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
  Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)</p>
  
  <p>Android Designer EPL code available here:
  <a href="https://github.com/xamarin/AndroidDesigner.EPL" rel="nofollow noreferrer">https://github.com/xamarin/AndroidDesigner.EPL</a></p>
  
  <p>=== Apple Developer Tools ===</p>
  
  <p>Xcode 8.0 (11246)
  Build 8A218a</p>
  
  <p>=== Xamarin.iOS ===</p>
  
  <p>Version: 10.12.0.20 (Visual Studio Community)
  Hash: 80b8487d
  Branch: d15-3
  Build date: 2017-08-18 16:07:26-0400</p>
  
  <p>=== Xamarin.Mac ===</p>
  
  <p>Version: 3.6.0.19 (Visual Studio Community)</p>
  
  <p>=== Xamarin Inspector ===</p>
  
  <p>Version: 1.2.2
  Hash: b71b035
  Branch: d15-1
  Build date: Fri, 21 Apr 2017 17:57:12 GMT</p>
  
  <p>=== Build Information ===</p>
  
  <p>Release ID: 701001297
  Git revision: 9c5299666538b2f8baf501418a5c064d784d64da
  Build date: 2017-08-07 11:29:35-04
  Xamarin addins: 3bb0c32a14f1b7e368bf5ac53a84c3581c019391
  Build lane: monodevelop-lion-d15-3</p>
  
  <p>=== Operating System ===</p>
  
  <p>Mac OS X 10.11.6
  Darwin 15.6.0 Darwin Kernel Version 15.6.0
      Thu Jun 23 18:25:34 PDT 2016
      root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64</p>
  
  <p>=== Enabled user installed addins ===</p>
  
  <p>LiveXAML 1.0
  Redth's Addins 1.0.9</p>