Android Studio build error - Multiple dex files define Landroid/support/v4/

前端 未结 11 839
别那么骄傲
别那么骄傲 2020-12-17 08:56

I am unable to build my project in Android Studio. I get the following error:

Error:Android Dex: [RaditazAndroid] Unable to execute DX
Error:Android Dex: [R         


        
11条回答
  •  悲哀的现实
    2020-12-17 09:26

    For others wondering why this problem still persist even doing all other things suggested, This may help.

    For me problem started when i added Glide library

    dependencies {
      .........
      implementation 'com.github.bumptech.glide:glide:4.8.0'
      .........
    }
    

    and i had added already.

    implementation 'com.android.support:design:26.1.0'
    

    Which was contradicting with Glide support library somewhere.

    Solution: Remove or downgrade your Glide support version.

     implementation 'com.github.bumptech.glide:glide:4.0.0'
    

提交回复
热议问题