Omar Qataberi
Omar Qataberi

Reputation: 138

When I generate an android app bundle it fails with "buildOutput.apkInfo must not be null"

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

Upvotes: 0

Views: 1193

Answers (2)

Kuldip Sharma
Kuldip Sharma

Reputation: 792

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.

Upvotes: 1

bipoza
bipoza

Reputation: 131

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\

Upvotes: 3

Related Questions