I've encountered a problem after upgrading from Android Studio 0.1.5 to 0.1.6 (also from 0.1.6 to 0.2.13) where my build failed with the following error:
Unable to execute dex: Cannot merge new index some_number > 2^16
into a non-jumbo instruction!
I've set the following line in the project.properties
file:set dex.force.jumbo=true
(both with set and without) and this did not fix the issue.
Any ideas?
I've fixed it by going to the Preferences (⌘/Ctrl+,) ➤ Compiler and unchecking the "Use external build".
I then went to Build ➤ Rebuild Project and it worked fine.
I hope this will help someone else too.
Edit:
Please note that since Android Studio 0.2.13 (I didn't use anything between 0.2.9 and 0.2.13 so I haven't noticed when it went away) There is no "Use external build" option.
To overcome this issue now you need to do this:
Go to the Preferences (⌘/Ctrl+,) ➤ Compiler ➤ Android Compilers and check the "Force jumbo mode".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With