Programmers learn & share
+1 vote
163 views

Problem :

I am facing bellow android workmanager issue
more than one file was found with os independent path 'meta-inf/proguard/androidx-annotations.pro'
by (6.9k points)   | 163 views

1 Answer

0 votes

Solution :

Please add bellow code to your apps build.gradle file and it will solved your problem.

android {
  packagingOptions {
    exclude 'META-INF/proguard/androidx-annotations.pro'
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/license.txt'
    exclude 'META-INF/NOTICE'
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/notice.txt'
    exclude 'META-INF/ASL2.0'
  }
}
by (36.1k points)  
2,182 questions
2,457 answers
59 comments
241 users