Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem "Entry name 'META-INF...' collide - Android

I have added some things to my mobile application, such as adds or animation-lists. The thing is that I could generate APKs perfectly some days ago and, since the moment y added those things, Android Studio does not let me generate them. It has the following error.

Entry name 'META-INF/androidx.vectordrawable_vectordrawable.version' collided

Or these other ones:

Execution failed for task ':app:packageDebug'. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Entry name 'META-INF/androidx.vectordrawable_vectordrawable.version' collided

I have no idea what could get wrong. Thank you so much.

like image 287
Álvaro Sánchez Avatar asked Jun 09 '20 10:06

Álvaro Sánchez


3 Answers

I had the similar problem with "META-INF/androidx.gridlayout_gridlayout.version' collided". It took my 4 hours and finally i resolved it. Method which worked for me i am not sure that will for you too but you can try. go to Menu Build > Rebuild Project thats it.

like image 68
Yam Avatar answered Oct 19 '22 03:10

Yam


In my case in the output directory there has already been a file called app-debug.apk and for whatever reason the android sdk could not overwrite it. The apk has been generated as soon as I deleted or renamed the old version.

like image 21
tmt Avatar answered Oct 19 '22 05:10

tmt


Delete the previous APK you build and try again. it helps me to solve this issue.

like image 7
developer Avatar answered Oct 19 '22 03:10

developer