I imported a jar file in app/libs dir and added it as a library in build.gradle file. But when I am building the project getting errors -
Zip file 'E:\AndroidProjects\testing\app\build\intermediates\apk\debug\app-debug.apk' already contains entry 'classes.dex', cannot overwrite
Note - This jar file is created in another environment/ having a different signature.
implementation files('libs/myjar.jar')
This issue looks like this and this - and I have tried deleting/ cleaning the build folder but this error is not going away. I also tried changing the Gradle version to the latest 7.2.1.