Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Fix wrong AIR SDK version

Here you can find hints and tips if you are having issues getting the Adobe AIR based Flex SDK installer Installer to work, as well as details of how to use the command-line to install the Flex SDK using Ant without requiring Adobe AIR.

If you had installed a previous (pre-release) version of the installer app, you will probably get an AIR error because of the mis-matched mismatched certificates. If you see such an error, you may need to uninstall the installer before continuing.

Mac OS (10.9 or later)

You must allow unsigned apps (in Security & Privacy pane of the System preferences) in order to install. In recent versions of OS X, this became a blocking error instead of a warning by default. This preference setting allows to revert it to a warning, non-blocking message.

Linux

Adobe no longer provide updates for their installer for the AIR runtime used by the installer, so clicking the installer badge may give an error, or the package it sends you will fail to correctly install. Workarounds to install the AIR runtime are listed below, or (as of Apache Flex 4.12 nightly) you can use the Ant based method.

Ant based method (no AIR required)


Table of Contents
absoluteUrltrue

Ant-based installer script

The Ant-based installer script doesn't require the Adobe AIR runtime to be installed, nor does it use a GUI app. Instead, it runs on the command line using Apache Ant. The Ant-based installer is the preferred method of install on Linux, but it also may be used on both Windows and macOS.

First, download the binary package from http://flex.apache.org/download-binaries.html and unpack it.Download the binary package ( currently, this is the nightly build from https://builds.apache.org/job/flex-sdk_release/lastSuccessfulBuild/artifact/out/) and unpack it

Panel

wget https://buildsdlcdn.apache.org/job/flex-sdk_release/lastSuccessfulBuild/artifact/out/4.16.1/binaries/apache-flex-sdk-4.1216.01-bin.tar.gz

tar zxvf apache-flex-sdk-4.1216.01-bin.tar.gz

Now enter Next, navigate into the unpacked directory and .

Panel

cd apache-flex-sdk-4.16.1-bin/

Then, run the installer.xml script using Ant.

On macOS and Windows, you . You will need to tell it to download the last version of the AIR SDK that ran on Linux:the script to target version 32.0 of both Adobe Flash Player and the Adobe AIR SDK. 

Panel

# Windows and macOS only

ant -f installer.xml -Dflash.sdk.version=32.0 -Dair.sdk.version=32.0

However, on Linux, you should target version 32.0 of Adobe Flash Player, but skip the Adobe AIR SDK.

Panel

# Linux

Panel

cd apache-flex-sdk-4.12.0-bin/

ant -f installer.xml -DairDflash.sdk.version=2.832.0 -Dair.donot.ask=true

On all platforms, you You will be asked to agree to all the licence terms.

Now you just need to create folders to hold the player global file, and download the expected version:

Panel

mkdir -p frameworks/libs/player/11.1/

wget http://download.macromedia.com/get/flashplayer/updaters/11/playerglobal11_1.swc -O frameworks/libs/player/11.1/playerglobal.swc

license terms for some additional components that must be downloaded for the Flex SDK to function properly.

After the installer script completes, And finally verify that the Apache Flex compiler runs successfully.

Panel
bin/mxmlc

You should see output likesimilar to the following:

Panel

Loading configuration file.........apache-flex-sdk-4.1216.01-bin/frameworks/flex-config.xml

Apache Flex Compiler (mxmlc)

Version 4.1216.0 build 2014-01-30_14-25-531 build 20171115

Copyright 2013 2017 The Apache Software Foundation.

Error: a target file must be specified

Use 'mxmlc -help' for information about using the command line.

...

Adobe AIR

...

-based installer on macOS (10.9 or later)

The Adobe AIR-based installer app is not signed or notarized, which prevents modern versions of macOS from verifying its origin. Attempting to open the Adobe AIR-based installer app will cause macOS to block it and display a warning that the app is from an unknown developer. For a workaround, see Apple: Open a Mac app from an unknown developer.

Adobe AIR-based installer on Linux

Adobe no longer provide updates for the Adobe AIR runtime on Linux. You must use the Ant-based installation method

For 32bit systems

Panel

sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

For 64bit systems

Panel

sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

Then for either system:
download the Adobe AIR installer by running the following command:

Panel

wget http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin

Once downloaded, you need to add "execute" permission to the installer:

Panel

sudo chmod +x AdobeAIRInstaller.bin

The last thing to do is executing the Adobe AIR installer:

Panel

sudo ./AdobeAIRInstaller.bin

Confirm is installed once complete

Panel

dpkg -l|grep adobeair

should list 'ii adobeair 1:2.6.0.19170 i386 Adobe AIR 2'. You can now click the installer on the main download page and it should work fine.

(thanks to http://www.ubuntubuzz.com/2012/08/how-to-install-adobe-air-on-ubuntu-1204.html)

Install AIR on Fedora and other .rpm based system (such as CentOS)

Currently .rpm's of the installer are not available.

Follow the instructions above to install the AIR runtime, then there has been some success reported using alien to convert the .deb package and install that. You will find the installer in /opt if all went well.