Didn't find class on path: DexPathList?
Solution 1:
I had to enable Java 8 Support after updating to Android Studio 3.5
Add the following lines in your build.gradle file:
android {
defaultConfig {
...
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
You can check the documentation here: https://developer.android.com/studio/write/java8-support
Solution 2:
Go to your project level build.gradle file and decrease the version of gradle dependency to anything lower than 2.3.0, say use 2.2.3
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
....
}
Then clean -->build -->install debug apk to other device-->it may be OK then!
Solution 3:
in your application tag, change
android:name="com.w3xplorers.cmch.EnableMultiDex"
with
android:name="android.support.multidex.MultiDexApplication"
Hope this helps :)
more information at:
https://developer.android.com/studio/build/multidex.html