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
try clean your build and rebuild it and then run project still did not worked then do following
File->Invalidate Cashes /restart-> Invalidate and restart
you can clean your build by
Build-> Clean project