Skip to main content
May 24, 2013
Question

Removing air prefix from package name.

  • May 24, 2013
  • 3 replies
  • 10584 views

So I don't want to upload my apps to the google play and iOS stores with the "air." prefix on their package names. I've seen a guide to do this here, but it seems to be very error-prone. Now, on stack overflow, there was one answer to this question (here) that mentioned a much simpler method: set the environment variable AIR_NOANDROIDFLAIR to true and export your app.

So I've set this variable on mac and tried exporting an app, but it remains with the air prefix. I tried looking around the web to see if I was following the advice correctly and found that environment variable trick mentioned only on two stack overflow answers. Is that thing legit?

My publishing setup is mac with adobe flash builder 4.6, if this helps. I'm used with exporting apps via the "Export Release Build" button.

This topic has been closed for replies.

3 replies

Participant
July 18, 2015

I just ran into this issue when adding my app to the Google Play Store.

I found a thread that worked for me, but I am using Windows 8.1.

1. Right click the start button and choose > System.

2. Then > Advanced system settings

3. Button at the bottom > Environment Variables

4. I created both a user and system variable

  • Name: AIR_NOANDROIDFLAIR
  • Vale: true

I then rebooted just to be sure.  Opened my mobile project and released an export build from within Flash Builder.  The air. prefix was gone.
http://www.wikiguga.com/topic/89b9e27bf1ee2e0c0cfb239df4292550

Wolfgang Klopf
Inspiring
August 27, 2013

The AIR_NOANDROIDFLAIR trick works just perfect.

Open a command prompt window to the Air SDK lib folder and paste: set AIR_NOANDROIDFLAIR=true

type just "set" (without quotes) again and see if the displayed list shows AIR_NOANDROIDFLAIR=true

It's important, that you are not closing this window! Use this command prompt window to compile your app: java -jar adt.jar -package -target apk-captive-runtime.............

Known Participant
August 28, 2013

Hey Wolfgang Klopf I did exactly as you said, and when I upload the .apk it makes to Google play I'm still getting an error telling me the package name isn't correct and then I verify It's actually still adding the .air. Could this be because I'm using the Apache Flex SDK?

I might be stuck trying to figure out your solution es2ws. It's just that I'm not really understanding what I downloaded off of your site. I found the build.xml in the android folder when I downloaded the zip, and It makes sense where I could update the directories to work with my computer.... But after all that I'm not sure where I should actually place the build.xml and then what I should run in the command prompt to actually make it do its thing. Mind explaining? Or pointing me to a guide that would show me how to use this thing? I'm on on a Mac (10.7.5)

Participant
August 28, 2013

I don't think you are going to have any luck with this compiling with Flash Builder. You need to package from the command line. It appears that on a mac, as Worlfgang points out, you need to

Open a command prompt window to the Air SDK lib folder and paste: set AIR_NOANDROIDFLAIR=true

type just "set" (without quotes) again and see if the displayed list shows AIR_NOANDROIDFLAIR=true

And in this same window run a compile command like

path_to_sdk/bin/adt -package -target apk-captive-runtime -storetype pkcs12 -keystore cert/Your_Android_Cert.p12 -storepass YOUR_STORE_PASS YOUR_OUTPUT.apk application.xml -C PATH_TO_YOUR_FILES . -C PATH_TO_YOUR_ICONS . -extdir PATH_TO_YOUR_ANEs

Flash Builder will have compiled your SWF already, so you don't need it to make an APK

Participant
June 19, 2013

I'm having the same problem. Setting the environment variable doesn't seem to be working. I'm trying to upgrade my old application to an AIR based one, but I can't because the package names have to be the same!

Known Participant
July 24, 2013

I am having the same exact issue!

I developed an app for Android a while ago using just the basic native Android SDK, so of course there is no ".air" prefix. But since then I've started using the AIR platform and have completely redeveloped my app using AIR/Flash Builder 4.7 and there is no clear way to remove the ".air" prefix.

I can not update my app until Adobe addresses this issue. It is no longer nessisary to have the "air." prefix due to the captive runtime.

I found an awful long solution involving basically dismantalling the .apk file and repackaging it. But the workflow of this is an absolute mess to have to go through for every single update. In the iphone debug exporter there is a field to modify the package name that is visible in Flash Builder 4.7. Why can't that just be part of the Android release build export process that way I can easily remove the "air." prefix.

Adobe is making it really hard to switch over to using the AIR platform from developing with the native Android SDK.

I've also had trouble figuring out the 'AIR_NOANDROIDFLAIR' to true fix. Has anyone had any luck with getting this to work on a Mac? Would you mind posting how you went about setting that?

Participant
July 24, 2013

I found that AIR_NOANDROIDFLAIR only works when you have your app set to use a captive runtime. Try that and let me know if it works for you.