I get this error when I Run->app for an Android application in Android Studio
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex file
For those who are using Google Cloud Endpoints in Android app:
compile(project(path: ':backend', configuration: 'android-endpoints')) {
exclude(module: 'guava-jdk5')
}
Where backend
is name of your module with AppEngine app.
In every other case just look for guava-jdk5
transitive dependency and exclude it.