4

The only file in release is the build apk. The aab file is only in debug folder eventhough already choose release when want to generate sign bundle.

ankuranurag2
  • 2,300
  • 15
  • 30
Kucing Kiki
  • 113
  • 1
  • 10

5 Answers5

5

Already solved the problem. Just checked the build variant are debug so thats why it does not appear. Just choose release and it will generated the file.

Build - Select build variant -Release .

Kucing Kiki
  • 113
  • 1
  • 10
1

For me the problem was not setting the Key Alias correctly which resulted in no building at the end and therefore no aab, but wierdly no error at all. Anyway I set the Key Alias correctly and it worked as expected.

Neku80
  • 361
  • 4
  • 16
1

.aab the release file is in app/build/outputs/bundle/[build flavor]Release

And the debug version is in app/build/outputs/bundle/[build flavor]Debug

HUAN XIE
  • 175
  • 1
  • 3
1

My problem was that I used the command following command but my aab was not being generated.

npx react-native build-android --mode=release

but when I changed to :- cd android and

./gradlew bundleRelease

It worked fine!! and also you have to generate keystore too by : windows:

keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

mac:

sudo keytool -genkey -v -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
0

Check Release folder under Release as it has gone one folder down. Signed Bundle for Release

Vanshaj Daga
  • 2,145
  • 11
  • 18