Skip to main content
Known Participant
June 10, 2015
Question

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

  • June 10, 2015
  • 2 replies
  • 1194 views

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 has been closed for replies.

2 replies

piyushb89979246
Adobe Employee
Adobe Employee
June 11, 2015

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

blogtomAuthor
Known Participant
June 12, 2015

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

Colin Holgate
Inspiring
June 10, 2015

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.

blogtomAuthor
Known Participant
June 12, 2015

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

Adobe Employee
June 12, 2015

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