I had this issue where I overflow the 64k method limit in Dalvik when compiling all the library I used. I started to have this issue when I imported the Support
hey you can try my trick, it might be useful for you
First of all you should avoid external libraries. Like in that libraries have same dependencies. So, try to merge that library with android application code. Due to this save much space for methods.
Use useful dependencies and libraries like if you want google play services then include only useful services not all.See example
compile "com.google.android.gms:play-services-location:9.4.0"
compile "com.google.android.gms:play-services-maps:9.4.0"
Avoid this
compile 'com.google.android.gms:play-services:9.4.0'
Remove unwanted dependencies.Use very chooseable dependencies in your code.
If all things not work really well then use multidex in your code.But it create Multiple dex files.So, your code will take much time for compilation.
Thanks hope this will help you.