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
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'