Gradle: Fixed "The command line is too long" error

295 views
Skip to first unread message

jfaz...@fd-software.com

unread,
Jul 23, 2014, 8:38:37 AM7/23/14
to adt...@googlegroups.com
Hey guys,

I just wanted to post that I submitted a patch to AOSP that fixes this problem.  It works by copying all of the libraries into a single folder and passes dx that folder instead of each single library.  This way we only pass dx a single directory and not a ton of file paths.  

jfaz...@fd-software.com

unread,
Jul 23, 2014, 8:41:45 AM7/23/14
to adt...@googlegroups.com
Sorry I forgot to post the link to the patch.  Here it is https://android-review.googlesource.com/#/c/102063/

Xavier Ducrohet

unread,
Jul 23, 2014, 1:25:36 PM7/23/14
to adt...@googlegroups.com
We probably don't want to do this, as it's extra copying of files (that can be fairly big)
I think we need to fix dx to make it receive a file that contains a list of input.


--
You received this message because you are subscribed to the Google Groups "adt-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adt-dev+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Xavier Ducrohet
Android SDK Tech Lead
Google Inc.
http://developer.android.com | http://tools.android.com

Please do not send me questions directly. Thanks!

jfaz...@fd-software.com

unread,
Aug 8, 2014, 4:35:00 PM8/8/14
to adt...@googlegroups.com
Hello Xavier,

I just wanted to post that I uploaded 2 more patches that should fix the dex problem the way you requested.  The first https://android-review.googlesource.com/#/c/103691/ which added an --input-list option to dex.  The second https://android-review.googlesource.com/#/c/103790/ writes the libraries to a file and passes that file name to dex. 
Reply all
Reply to author
Forward
0 new messages