Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entry name 'org/joda/time/tz/data/Europe/Dublin' collided

I got this error suddenly when compiled a signed Apk, and not sure how to fix it.

Entry name 'org/joda/time/tz/data/Europe/Dublin' collided

It's not pointing to any line, this is the Joda library import:

implementation "joda-time:joda-time:2.9.9"
like image 606
ghita Avatar asked Apr 14 '20 09:04

ghita


Video Answer


2 Answers

I got the same error on the latest JodaTime version - 2.10.5. But only with some flavors. It seems as a gradle build error. In the my case - I have deleted ./app/build/ folder and then start "Invalidate cache and restart".

like image 83
Andrew Grow Avatar answered Oct 26 '22 07:10

Andrew Grow


If anyone else is trying to generate an APK (and your APK output folder is outside of the build folder), but still having issues after deleting the build folder, and doing "Invalidate cache and restart" on Android Studio, try deleting the previously generated .apk file from your respective APK output folder. See first answer in related question Can't run nor debug project but gradle build+install work

like image 25
Johnny Avatar answered Oct 26 '22 05:10

Johnny