Skip to main content
Known Participant
Jun 10, 2015 3:27 PM UTC
Question

How to install an AIR Android app from ADT command line?

Hi,

I would like to install my AIR Android with ADT from the command line. I tried it with the string below but got errors like "app icons are missing":

adt -package -target apk-debug -connect -storetype pkcs12 -keystore myapp_android.p12 myapp.apk myapp-app.xml myapp.swf

What do I need to add to make it work?

Many thanks

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

piyushb89979246
Adobe Employee
Adobe Employee
Jun 11, 2015 5:29 AM UTC

Hi,

This is the command to install app on your device:

adt -installApp  PLATFORM-OPTION PLATFORM-SDK-OPTION? DEVICE-OPTION? -package <apk-file | ipa-file>

e.g:  adt -installApp -platform ios -package <your ipa name>

Thanks

Piyush

Translate
blogtomAuthor
Known Participant
Jun 12, 2015 2:23 PM UTC

I tried it and got this error: install failed already exists

How to install an APK without uninstall it before? I used this command:

adt -installApp -platform android -package example.apk

Translate
Colin Holgate
Inspiring
Jun 10, 2015 6:01 PM UTC

App icons missing shouldn't stop it from building. Here's the article on ADT:

Adobe AIR * AIR Developer Tool (ADT)

It does just build the APK, it doesn't install it. I think you will need to use ADB for that.

Translate
blogtomAuthor
Known Participant
Jun 12, 2015 2:24 PM UTC

Do I need to install something to use ADB? Can you please give me an example command to install an APK? Many thanks

Translate
Adobe Employee
Jun 12, 2015 2:49 PM UTC

Hi, blogtom‌

You do not need to install anything to use adb.

adb is present in the AIR SDK folder in following path. If you cannot find it, you can search it by file name adb inside the AIR SDK.


<AIRSDK_ROOT>/lib/android/adb

you can easily install the apk file using the adb install command.

The below example shows installing a apk named Game.apk to an android device connected to your machine.

adb install Game.apk


Thanks

Roshan


Translate