0

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

Omar Qataberi
  • 117
  • 1
  • 11

2 Answers2

3

For Android Studio 3.5 Update. (APK signed issue)

I had the same issue. I have resolved this issue by modifying the Destination Folder.

Step by step

  1. Build
  2. Generate signed Bundle/APK
  3. Select Android App Bundle or APK
  4. Add Keystore
  5. On Destination Folder: Change c:\user\folder\project\app to c:\user\folder\project\

Summary

Before

c:\user\folder\project\app

After

c:\user\folder\project\
bipoza
  • 131
  • 3
  • 5
1

In my case, just simple steps started to work:

  1. Delete the build folder of App and inner Modules.
  2. Clean Project.
  3. Rebuild Project.

That's it.

Kuldip Sharma
  • 782
  • 1
  • 6
  • 8