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

Answered

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?

 

3 comments

Thanks Serge.

AIR Developer Tool (ADT) Commands:
http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128fc240122-8000.html

I had to download the Android Studio, then open and create a template project to get the Android SDK fully installed.
http://developer.android.com/sdk/index.html

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 "20.0.0.260"

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

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

 

 

0

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.

0

Please sign in to leave a comment.