Home Ask Login Register

Developers Planet

Your answer is one click away!

Vishnu Kant Agarwal February 2016

How to solve the issue Unable to execute dex

I am using eclipse. When i am adding facebook library give error "Unable to execute dex: method ID not in [0, 0xffff]: 65536 Conversion to Dalvik format failed: Unable to execute dex: method ID not in [0, 0xffff]: 65536"

How to fix this issue.


Arash February 2016

you are passing maximum limit of functions count , one way might be using multidex , another might be excluding some libraries from Google play services if you are using that.

except importing whole google play service library features, import what you need separately like :

compile 'com.google.android.gms:play-services-maps:7.5.0'
compile 'com.google.android.gms:play-services-location:7.5.0' 

Post Status

Asked in February 2016
Viewed 1,371 times
Voted 9
Answered 1 times


Leave an answer

Quote of the day: live life