I had this error when running app in Android Studio, complile is pass. I can't understand why this error appears. And I found nothing in Internet for the similar error when using card.io. perhaps this is particular for my project due to different dependencies I used.
Asked
Active
Viewed 72 times
0

Adam
- 444
- 5
- 18
2 Answers
1
Possible because more than one file found for the same resource during compile time.
Try adding this to the build.gradle
file for the app
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE.txt'
exclude 'LICENSE.txt'
exclude 'META-INF/services/javax.annotation.processing.Processor'
}

MadScientist
- 2,134
- 14
- 27
-
I have used your answer.it is working perfectly. – Adam May 02 '17 at 05:41
-
I'm glad it worked. Would be great if you mark it as an answer! Cheers! – MadScientist May 02 '17 at 05:44
1
This issue is caused by incompatible types in your card,io you have to find that source and update it or there is also a work around for this. Enter these lines in your gradle file and then try it should work fine,
packagingOptions { exclude 'META-INF/LICENSE' }

Umair
- 6,366
- 15
- 42
- 50