When I enable Multi-dex I get:
Severity Code Description Project File Line Suppression State
Error Unable to access jarfile C:\Program Files (x86)\Android\android-sdk\tools\proguard"\lib\proguard.jar -injars 'C:\Program MonkeysApp C:\GitHub\MonkeysApp-AppIndexing\MonkeysApp\CREATEMULTIDEXMAINDEXCLASSLIST
It looks like there is an extra " for the proguard path as it does exist.
Here is my app that needs it: https://github.com/jamesmontemagno/app-monkeys/tree/full-ads-sdk
Which version of VS are you using for this?
Do you get the same issues from the command line MSBuild? If so which version has the problem?
My info: https://gist.github.com/jamesmontemagno/0eb2d6d196daf2d0e39aa571025aa349
I did see this post: https://forums.xamarin.com/discussion/comment/245334/#Comment_245334
Could be an issue in the Android SDK... I guess, seems odd though.
I didn't run via command line at all. I would assume this may also repo on mac?
So, I did the fix from the forum and it seemed to work, but it was a pain because of persmission issues and trying to modify it.
Although, now I actually get:
Severity Code Description Project File Line Suppression State
Error Expecting class path separator ';' before '\Android\android-sdk\build-tools\25.0.2\lib\shrinkedAndroid.jar' in argument number 8 MonkeysApp C:\GitHub\MonkeysApp-AppIndexing\MonkeysApp\CREATEMULTIDEXMAINDEXCLASSLIST
*** Bug 51143 has been marked as a duplicate of this bug. ***
*** Bug 51494 has been marked as a duplicate of this bug. ***
I can't repo this on the latest Alpha channel. XA 184.108.40.206.
The proguard path does not have the problematic " at the end of it.
Are you able to test it again on Alpha and see if you still get the problem?
@Dean XA 220.127.116.11 is a previous stable release (C8SR1). The C9 Alpha/Beta available on Windows is is XVS 18.104.22.1688 (cycle9/95cf4d3 w/ XA 22.214.171.124 (cycle9/ed959b6)).
This also only reproduces on Windows, and is a new failure which only manifests in Cycle9. I am able to reproduce from Windows command line with msbuild as well as from within VS 2015 using the following:
I can reproduce with a new template (which doesn't _need_ multidex, but still fails in the same way) and the project James linked in the description.
I have managed to repo this.
Its weird, the proguard.bat in android tooling has this follow
java -jar "%PROGUARD_HOME%"\lib\proguard.jar %*
note the "" around %PROGUARD_HOME% they look in the wrong place. As a result its producing the error we are seeing.
In this case we are not calling proguard directly. It is being called from mainDexClasses.bat
Its not just us
It's definitely odd as this issue does seem to have been around for a _while_, but it only now manifests after updating to Cycle9 from what I've seen. If you use the current XVS stable the same issue is not reproducible on the same environment. That indicates to me that something also changed on our end between the two releases?
The only change I can see was in October last year
I will try and see if that caused the issue
This PR might do the trick
Fixed in xamarin-android/master/d71dcc99
When is this going to be in a stable release?
I am also able to reproduce this issue with XVS 126.96.36.1990. Also, tried to verify this issue with latest master XVS 188.8.131.524 but observed that the XA mentioned in Comment 15 is not merge with this XVS 184.108.40.2064, it includes XA 7.199.59(41db8f9).
Could you please merge this xamarin-android/master/d71dcc99 with latest master XVS? So, that I can verify this issue with master.
I have checked this issue with latest build of master XVS i.e.
XVS 991.0.573 cec65c98d6809bda996bb09ffedaa70e462f9898 and observed that this issue still exist with this build.
Could you please let me know with which version of XVS contains the fixed XA build ?
As of now I am reopening this issue.
Can you provide diagnostic output of the problem please. The version of VS you used should contain the fix. I need more information as to what is going on.
I'm not quire sure what you want. I have given the error message. See below for the output of my Visual Studio setup
Microsoft Visual Studio Enterprise 2015
Version 14.0.25431.01 Update 3
Microsoft .NET Framework
Installed Version: Enterprise
Architecture and Modeling Tools 00322-90001-26663-AA288
Microsoft Architecture and Modeling Tools
UML® and Unified Modeling Language™ are trademarks or registered trademarks of the Object Management Group, Inc. in the United States and other countries.
Microsoft Visual Studio Tools for Applications 2015 00322-90001-26663-AA288
Microsoft Visual Studio Tools for Applications 2015
Visual Basic 2015 00322-90001-26663-AA288
Microsoft Visual Basic 2015
Visual C# 2015 00322-90001-26663-AA288
Microsoft Visual C# 2015
Visual C++ 2015 00322-90001-26663-AA288
Microsoft Visual C++ 2015
Application Insights Tools for Visual Studio Package 1.0
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2015.1 (Beta8) 14.1.11107.0
ASP.NET and Web Tools 2015.1 (Beta8)
ASP.NET Web Frameworks and Tools 2013 5.2.40314.0
For additional information, visit http://www.asp.net/
Command Bus, Event Stream and Async Manager Merq
Provides ICommandBus, IEventStream and IAsyncManager MEF services for loosely coupled Visual Studio extension components communication and integration.
Common Azure Tools 1.8
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
Microsoft Azure Mobile Services Tools 1.4
Microsoft Azure Mobile Services Tools
NuGet Package Manager 3.4.4
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
PreEmptive Analytics Visualizer 1.2
Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.
SQL Server Analysis Services 13.0.1701.8
Microsoft SQL Server Analysis Services Designer
SQL Server Data Tools 14.0.61021.0
Microsoft SQL Server Data Tools
SQL Server Integration Services
Microsoft SQL Server Integration Services Designer
SQL Server Reporting Services 13.0.1701.8
Microsoft SQL Server Reporting Services Designers
Provides source code style and consistency tools. See http://stylecop.codeplex.com/ for more details.
TypeScript tools for Visual Studio
Visual Studio Tools for Universal Windows Apps 14.0.25527.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.
Xamarin 220.127.116.11 (27a9b40)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android 18.104.22.168 (501e63c)
Visual Studio extension to enable development for Xamarin.Android.
Xamarin.iOS 10.3.1.7 (8b53676)
Visual Studio extension to enable development for Xamarin.iOS.
I have checked this issue with latest XVS master build Xamarin.VisualStudio_22.214.171.1240_950fc7997dc95b4f38c4a40413eccc2f5bc4d283
containing Xamarin.Android 126.96.36.199 (b5ae7fe) and still getting this issue
>>mainDexClasses.bat --output obj\Debug\multidex.keep "'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\MonoAndroid\v7.1\mono.android.jar';'C:\Program Files (x86)\MSBuild\Xamarin\Android\android-support-multidex.jar';'obj\Debug\android\bin\classes'" (TaskId:189)
1>CREATEMULTIDEXMAINDEXCLASSLIST : error : Unable to access jarfile D:\abhi\android-sdk\tools\proguard"\lib\proguard.jar -injars 'C:\Program
Build Output: https://gist.github.com/jatin360/59d39f0eadc431be90c43431b2cee0fc
hence, I am reopening this issue.
Pr is up https://github.com/xamarin/xamarin-android/pull/420
PR #420 is merged; fixed in:
Marking as resolved per Comment #23.
Multidex invocation on Windows is again working for me using build tools 23.x and JDK 1.7 with Xamarin 188.8.131.523(ac4a0ec) & Xamarin.Android 184.108.40.206(cda45e2).
Will wait to mark as verified once this is applied to cycle9.
Fixed for C9 in:
I have checked this with latest master XVS build
containing Xamarin.Android 220.127.116.11(cda45e2) and JDK 1.8.0_102 and still getting the issue.
Envt Info: https://gist.github.com/sachins360/707f8425101d10df1398432543549b6a
Build Output: https://gist.github.com/sachins360/da67448729e14ddd2b1afa3bfb4736b5
Hence, I am reopening this issue.
@Jatin the error you are hitting in Comment #26 is not the same as originally reported, and is due to the fact that the proguard tool provided by the Android SDK requires JDK 1.7 or lower.