More than one file was found with OS independent path 'META-INF/proguard/androidx-annotations.pro'

后端 未结 7 416
轻奢々
轻奢々 2021-01-30 05:59

i am trying android WorkManager, The code is throwing error \"More than one file was found with OS independent path \'META-INF/proguard/androidx-annotations.pro

7条回答
  •  既然无缘
    2021-01-30 06:44

    Can use add in build.gradle(app) (answered by TheStrikeBone)

    android {
        packagingOptions {
            exclude 'META-INF/proguard/androidx-annotations.pro'
        }
    }
    

    OR downgrade android.arch.work version into 1.0.0-alpha08

    dependencies {
        implementation 'android.arch.work:work-runtime:1.0.0-alpha08'
    }
    

提交回复
热议问题