Today i found this error while trying to run my app. I made the following attempts towards solving it. - First i removed multidex support, but i can still see the slices of
I faced the same problem with Flutter and this question was the first link on Google when I searched my error:
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArraySet
So the root of your problem might be same: AndroidX adaptation. Adding those lines to gradle.properties fixed my problem:
android.useAndroidX=true
android.enableJetifier=true
You may also want to add compileSdkVersion 28 to your app-level build.gradle file.
For further information