How to create aab via air33?

I want to create aab (bundle) using air 33 but it show following error.

Bundle tool failed:Error while parsing the flags: Syntax error: flags should start with – (Video)

The command line that I used is:

adt -package -target aab -storetype pkcs12 -keystore cert.p12 myApp.aab myApp-app.xml myApp.swf assets Data

I can create apk file replacing aab to apk. I try to google the error but couldn’t find much. What does that error mean?

if you read carefully the doc

AIR now supports this on an experimental basis, with the packaging of the libraries for each of the four supported ABIs into the single AAB file. This uses a different resource packaging tool, “aapt2” as well as the “bundletool2 utility which are now added to the AIR SDK (see license information for these under the “lib/android/licenses” folder).

emphasis mine, expect the production of AAB to fail, stop considering it as an available feature

To generate an Android App Bundle file, the ADT syntax is similar to the “apk” usage:

adt -package -target aab <signing options> output.aab <app descriptor and files> [-extdir <folder>]

and related to your error message

this part flags should start with – indicate a bundletool error
see for ex Command unzip out.apks -d apks not working ?

eg. a flag n was used with a single dash -, eg. -n
instead of a double dash eg. --n

now look at this post Announcement: If you ask for help about code

you don’t mention which OS you’re using, which version of the SDK, how you run it on the command-line, you don’t provide your full error output, etc.



I call that bullshit here, the double dash -- is something regularly mentioned in command-line tools

see POSIX 12.2 Utility Syntax Guidelines

Guideline 10:
The first argument that is not an option-argument should be accepted as a delimiter indicating the end of options. Any following arguments should be treated as operands, even if they begin with the ‘-’ character.

1 Like