Try adding this line to your project.properties project
dex.force.jumbo = true
Which increases the limit for lines in dex files. Your project will probably be compiled.
Note. Also, with jumbo set, this is another 64K limit for methods in one dex only. If you get this limit in the future, you will need to remove some dependencies.
Update - Google Play 6.5 Services (12-08-14)
With version 6.5, Google finally disassembled Google Play Services. So now you can selectively compile the API into your executable file.
Example:
compile 'com.google.android.gms:play-services-maps:6.5.+' compile 'com.google.android.gms:play-services-ads:6.5.+'
For all other Google Play APIs, check this page at d.android.com .
Update (04/21/2015): https://developer.android.com/tools/building/multidex.html
Haresh Chhelana Sep 29 '14 at 6:32 2014-09-29 06:32
source share