Entry name 'classes.dex' collided

Sanjid Chowdhury picture Sanjid Chowdhury · Mar 4, 2021 · Viewed 9.2k times · Source

While trying to Generate a singed 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

Please let me know if you need more information and I will update the question accordingly

Answer

Tanzim Chowdhury picture Tanzim Chowdhury · Mar 5, 2021

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.