Android App Bundle not generating in Android Studio

Viewed 2540

I am trying to publish my Ionic Angular app to the Google Play Store via Android Studio, but I'm having trouble generating the Android App Bundle.

When I open the app in Android Studio, I go to Build > Generate Signed Bundle / APK

The below 3 screenshots show the values I've entered.

Screen One:

first_screen

Screen Two:

second_screen

Screen Three:

third_screen

But when I click Finish, no prompts, error messages, etc. display to say whether or not the bundle was created.

When I go to android/app, there's no release folder appearing.

Can someone please tell me why no error message is appearing if the folder isn't being created?

4 Answers

I had exactly the same problem (it looks like yet another Android Studio bug).

I solved it by:

  • deleting the release folder

  • creating a NEW KeyStore and NEW Key

Then it worked fine!

I'm not sure if this would still be necessary but as a reference for those who might still encounter the same issue, I'm sharing. I experienced the same issue. Instead of Generate Signed Bundle, I tried from the Build bundle but was was built was a debug version. What worked was, I selected in the key store path"Create New" (instead of choose existing)but used the same file name and password of my existing key. With this, an app bundle was generated and the notice informing the location of the file popped out with the release file in it.

Try to change the versionCode and the version name in your build gradle file:

 defaultConfig {
    applicationId "*********"
    minSdkVersion 21
    targetSdkVersion 29
    versionCode 1       // Change this to 2 or more
    versionName "1.0"  // Change this to 1.1 or more

    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

After clicking finish in the lower right corner there should be this window: picture1

after that open the event log and click locate and it should open the folder with the apk: picture2

Related