After upgrade android version getting “Duplicate class android.support.v4.app.INotificationSideChannel”

后端 未结 3 866
无人及你
无人及你 2020-12-15 07:24

before android update 3.4 my application run perfectly but after upgrade android my application getting merging error:

\"Duplicate class android.support.v4.         


        
3条回答
  •  温柔的废话
    2020-12-15 07:43

    You have androidx libraries (probably in one of the used libraries) conflicting with the support libraries.

    Add these lines into your gradle.properties file: (It's in the root directory of your project)

    android.useAndroidX=true
    android.enableJetifier=true
    

    The Jetifier tool migrates support-library-dependent libraries to rely on the equivalent AndroidX packages instead.

提交回复
热议问题