Android Studio Multiple dex files gradle error

前端 未结 4 1170
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-19 04:03

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         


        
4条回答
  •  庸人自扰
    2021-02-19 04:36

    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.

提交回复
热议问题