Bug 59237 - CREATEMULTIDEXMAINDEXCLASSLIST cannot parse .jars with parenthesis in filename.
Summary: CREATEMULTIDEXMAINDEXCLASSLIST cannot parse .jars with parenthesis in filename.
Status: CONFIRMED
Alias: None
Product: Android
Classification: Xamarin
Component: General (show other bugs)
Version: 8.0 (15.4)
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Jonathan Pryor
URL:
Depends on:
Blocks:
 
Reported: 2017-09-05 18:39 UTC by Jon Douglas [MSFT]
Modified: 2017-09-05 20:51 UTC (History)
2 users (show)

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

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 for Bug 59237 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Jon Douglas [MSFT] 2017-09-05 18:39:09 UTC
*Description:

The problem seems to stem from the following jar:

obj/Debug/__library_projects__/DeviceAPI_Android/library_project_imports/DeviceAPI_Android.Jars.cw-deviceapi(2016.05.16).jar

Full proguard.jar command:

/usr/bin/java -jar /Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/proguard/lib/proguard.jar -injars '/Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v8.0/mono.android.jar':'/Library/Frameworks/Xamarin.Android.framework/Versions/Current/lib/mandroid/android-support-multidex.jar':'obj/Debug/__library_projects__/DeviceAPI_Android/library_project_imports/DeviceAPI_Android.Jars.cw-deviceapi(2016.05.16).jar':'obj/Debug/__library_projects__/FormsViewGroup/library_project_imports/formsviewgroup.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Animated.Vector.Drawable/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Compat/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Core.UI/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Core.Utils/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Design/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Fragment/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Media.Compat/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Transition/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.Vector.Drawable/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.v4/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.v7.AppCompat/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.v7.CardView/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.v7.MediaRouter/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.v7.Palette/library_project_imports/classes.jar':'obj/Debug/__library_projects__/Xamarin.Android.Support.v7.RecyclerView/library_project_imports/classes.jar':'obj/Debug/android/bin/classes' -dontwarn -forceprocessing -outjars /var/folders/9n/5yc3jxkd4l39643n67qpslth0000gn/T/qm6fjv45.bnd.jar -libraryjars "'/Users/jonathandouglas/Library/Android/sdk/build-tools/26.0.1/lib/shrinkedAndroid.jar'" -dontoptimize -dontobfuscate -dontpreverify -include '/Users/jonathandouglas/Library/Android/sdk/build-tools/26.0.1/mainDexClasses.rules' 
    CREATEMULTIDEXMAINDEXCLASSLIST : error : Expecting class path separator ':' before '.jar' in argument number 2
    The command exited with code 1.

Now if we remove the problematic jar, the command succeeds. Thus there is an issue parsing this jar and my best guess is on the parenthesis.

This only happens on Mac, Windows can handle this command and path just fine.

Full Diagnostic Build Output:

https://gist.github.com/JonDouglas/fbf34ae594a4fd95626ccf08bf56cd8d

*Version Information:

Visual Studio 2017 for Mac - 7.2 Preview

Xamarin.Android - 7.5.0.15

This also happens on 15.3.3 stable builds of Xamarin.Android 7.4.0.21
Comment 1 Jon Douglas [MSFT] 2017-09-05 18:39:36 UTC
Reproduction Project:

https://github.com/MicrosecLtdUk/MultiDexTest