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 had similar issue. I have solved it by doing a "Clean Project", then a build.