Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entry name 'classes.dex' collided

While trying to Generate a signed APK I'm getting this error

Entry name 'classes.dex' collided

Can someone tell me how to solve it? I recently changed the default package name which was com.exmaple to my app's name. It builds correctly but gives this error while trying to generate a signed APK

My android studio version is 4.1.2

like image 307
Sanjid Chowdhury Avatar asked Mar 04 '21 14:03

Sanjid Chowdhury


Video Answer


2 Answers

You are probably facing this error because you already have a signed APK in your project's "release" folder. Please check for any existing APK and delete it, then try to generate once more.

like image 119
Tanzim Chowdhury Avatar answered Oct 18 '22 17:10

Tanzim Chowdhury


I had the same problem and here's how I solved it easily:

  1. Build -> Clean Project
  2. Build -> Generate Signed Bundle / APK..
like image 25
Félix Maroy Avatar answered Oct 18 '22 18:10

Félix Maroy