java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/util/ArrayMap;

后端 未结 4 982
囚心锁ツ
囚心锁ツ 2020-12-17 10:16

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

4条回答
  •  醉梦人生
    2020-12-17 10:59

    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

提交回复
热议问题