Android studio completes the building process then says that build failed
"I have tried cleaning the project & rebuilding it but it ends up with the same result"
output:
buildOutput.apkInfo must not be null
EDIT: I figured my problem here and it seems like some how my package changed and I fixed it with reversing the changes.
If you came here to solve a similar problem check this link first Cause: buildOutput.apkData must not be null