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
I deleted the previous build outputs for build variant, including APK file. That's what helped me