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)

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


Attachments

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

Note You need to log in before you can comment on or make changes to this bug.