i've ben facing this and tried to solve without any luck. Below are the error out put and my gradle file. Before marking this as duplicate i would like to point out almost all the suggested ways didn't work for me.
What i have tried so far
- set multiDexEnabled to true
- un-commented the line org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 in my gradle.properties file
- change my application class to extend MultiDexApplication instead of Application
- Check if i have duplicates class and i don't
- updated android studio and google play services to latest versions (3.1.2 for android studio)
- cleaned the project and even deleted .gradle file
any help will be appreciated. thanks in advance