After I\'ve updated Android Studio 3.4 to 3.5 and wanted to build a Signed APK, however I get the error :
Cause: buildOutput.apkData must not be null Erro
option 1 - change the destination folder of the apk generated and generate apk again.
option 2 - delete the output.json file under release folder and generate apk again.
It solved my problem. I hope it will help you too.