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 the same error after updating android studio and I fix the problem by only cleaning the project (Build > Clean Project) !:)