I have updated my android studio from 3.5.x to 3.6 today and getting error while generating signed apk for build variant showing the follow
After updating to Android Studio 4.1 I faced similar issues, for me it was "entry name 'classes.dex' collided". Error arose when building the app using the option 'Generate Signed Bundle/APK'.
The solution was simple: make sure Android Studio is not running the app when building (stop running and then try again).