Category Archives: android-espresso

Apache Poi 64K Error in Espresso Test

I have a problem in Espresso. I must compare a text with an excel cell. Studio says the following when I call apache poi methods.

Error:The number of method references in a .dex file cannot exceed 64K.

I've tried this in my other project and it works well. I've tried to enable multiDex but it gives some other errors because we are using async http master to get movies,music and other content I can't change main project files. There are so much methods, classes and layouts.

Consequently my Question is: is There any way to solve .dex file cannot exceed 64K Error.