By default, when you export an AIR application from Adobe® Flash Builder® that uses the AIR Captive Runtime, "air." is prefixed to the application's package name. This does not occur when you export BlackBerry applications. This means if your BlackBerry application specified a package name of com.mypackage.myapp, the exported BAR file would use com.mypackage.myapp as the package name, but the exported APK would use air.com.mypackage.myapp. This default configuration will break upgrades for users of existing applications if you were to repackage that APK file as a BAR file and submit to BlackBerry World.
Removing the air. Prefix From Your Package Name
There are two sets of instructions below, one for using Adobe AIR SDK 3.8 or higher in Flash Builder and another for using an Adobe AIR SDK lower than version 3.8. If you wish to update the Adobe AIR SDK in Flash Builder refer to this Adobe help article: Flash Builder Help - Update the AIR SDK for ActionScript Projects | Flash Builder 4.7 Note that this is not required and you can retain your existing Flash Builder development environment.
Using Flash Builder with Adobe AIR SDK 3.8 or higher
Create an environment variable called AIR_NOANDROIDFLAIR and set its value to true. This is case sensitive: the variable name must be all upper case and true must be lower case.
Restart Flash Builder.
Export a Release Build using the AIR Captive Runtime for Android.
Right click on your Project in Flash Builder and click Export.
Select Release Build, then click Next.
Select only Google Android as the Target Platform, then click Next.
Select "Export Application with Captive Runtime", then click Next.
Open the BAR file using an archive utility such as WinZip and verify the Package-name in the \META-INF\manifest.mf file does not contain the air. prefix. If it does, your installation of Flash Builder is using an AIR SDK lower than 3.8. You will need to perform the steps below.
Using Flash Builder with Adobe AIR SDK lower Than 3.8
The steps below can be used by developers who wish to continue using a version of Adobe AIR SDK lower than 3.8 in Flash Builder. You will need to download the Adobe AIR SDK version 3.8 or higher to package your application. Compilation of your .swf files can be done using your existing SDK.
Open the BAR file using an archive utility such as WinZip and verify the Package-name in the \META-INF\manifest.mf file does not contain the air. prefix.
Note: Before packaging an upgrade to an existing AIR Application for submission to Google Play™ or the Apple App store, remove the AIR_NOANDROIDFLAIR environment variable or set it to false to ensure the air. prefix is present.