Flex Project - Run on Android Device - Genymotion - AIR runtime required


If I attempt to run the default Flex AIR mobile project on an Android Device, and select a Genymotion virtual device, I get: Adobe AIR runtime is required on the device.

Is there a way to bundle the runtime instead? Otherwise, how do you get the AIR runtime installed on the device?



Thanks Serge.

AIR Developer Tool (ADT) Commands:

I had to download the Android Studio, then open and create a template project to get the Android SDK fully installed.

Then I used the ADT command line to install the runtime.

(These commands can be abbreviated if you get ADT environment/path setup)

Shows the version of the ADT:

/Applications/Intellij\ IDEA.app/Contents/jre/jdk/Contents/Home/jre/bin/java -jar ~/Src/SDK/Flex4.15/lib/adt.jar -version

Shows the Android devices running:

/Applications/Intellij\ IDEA.app/Contents/jre/jdk/Contents/Home/jre/bin/java -jar ~/Src/SDK/Flex4.15/lib/adt.jar -devices -platform android

Shows the installed runtime:

/Applications/Intellij\ IDEA.app/Contents/jre/jdk/Contents/Home/jre/bin/java -jar ~/Src/SDK/Flex4.15/lib/adt.jar -runtimeVersion -platform android -platformsdk ~/Library/Android/sdk

Installs the runtime:

/Applications/Intellij\ IDEA.app/Contents/jre/jdk/Contents/Home/jre/bin/java -jar ~/Src/SDK/Flex4.15/lib/adt.jar -installRuntime -platform android -platformsdk ~/Library/Android/sdk -package ~/Src/SDK/Flex4.15/runtimes/air/android/device/x86/Runtime.apk

Uninstalls the runtime:

/Applications/Intellij\ IDEA.app/Contents/jre/jdk/Contents/Home/jre/bin/java -jar ~/Src/SDK/Flex4.15/lib/adt.jar -uninstallRuntime -platform android -platformsdk ~/Library/Android/sdk


Before: -runtimeVersion returned "Failed to find package com.adobe.air"
After: -runtimeVersion returned ""

Target x86 in the Project Structure/Modules/Android tab.

Run on Device (Android Genymotion) now works from the IntelliJ Flex project.




Thank you for the detailed report!

BTW why did you need to install Android Studio and Android SDK? ADT -installRuntime command doesn't require it.


Please sign in to leave a comment.