Skip to main content
Participant
January 2, 2014
Answered

AIR 4.0 beta (Android) "Application Not Installed"

  • January 2, 2014
  • 2 replies
  • 944 views

Hi folks,

I need to update a previously released Android app to support 4.4 KitKat, but when I package the app with the latest SDK, it refuses to install on a development device. I've tried two devices and they both display the message "Application Not Installed" after clicking the "Install" button. The icon and permissions list displays as expected and the application compiles without error.

I've used an identical manifest (with the exception of updating the application namespace and version) and adt command that previously worked fine in the last version of the sdk that I used, AIR 3.0. I've attempted targetting both "apk" and "apk-captive-runtime". I've attempted installing an apk compiled from the command line and also attempted installing the apk directly from the Flash Pro IDE published output in USB debug mode. I created a new p12 file and tried using that, failed again.

Here's the command I used:

adt -package -target apk-captive-runtime -storetype pkcs12 -keystore "dev.p12" -storepass MY_PASSWORD "pocketpenguins.apk" "pocketpenguins-app-android.xml" "pocketpenguins.swf"

The manifest is below.

Again, the app compiles without error in all cases, it just won't install on the test devices. Any ideas?

thanks much in advance,

Greg

///////////

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<application xmlns="http://ns.adobe.com/air/application/4.0">

    <id>pocketpenguins</id>

    <versionNumber>1.3</versionNumber>

    <filename>pocketpenguins</filename>

    <description></description>

    <name>Pocket Penguins</name>

    <copyright>California Academy of Sciences</copyright>

    <initialWindow>

        <content>pocketpenguins.swf</content>

        <systemChrome>standard</systemChrome>

        <transparent>false</transparent>

        <visible>true</visible>

        <fullScreen>true</fullScreen>

        <autoOrients>false</autoOrients>

        <aspectRatio>landscape</aspectRatio>

        <renderMode>cpu</renderMode>

        <maximizable>true</maximizable>

        <minimizable>true</minimizable>

        <resizable>true</resizable>

    </initialWindow>

    <customUpdateUI>false</customUpdateUI>

    <allowBrowserInvocation>false</allowBrowserInvocation>

    <icon>

        <image36x36>icons/android/36.png</image36x36>

        <image48x48>icons/android/48.png</image48x48>

        <image72x72>icons/android/72.png</image72x72>

        <image96x96>icons/android/96.png</image96x96>

        <!-- <image144x144>icons/android/144.png</image144x144> -->

        <!-- <image192x192>icons/android/192.png</image192x192> -->

    </icon>

    <supportedProfiles>mobileDevice</supportedProfiles>

    <android>

        <manifestAdditions><![CDATA[<manifest android:installLocation="auto"><uses-feature android:name="android.hardware.telephony" android:required="true" /><uses-permission android:name="android.permission.INTERNET"/><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/><uses-permission android:name="android.permission.READ_PHONE_STATE"/><uses-permission android:name="android.permission.DISABLE_KEYGUARD"/><uses-permission android:name="android.permission.WAKE_LOCK"/><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/><uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/></manifest>]]></manifestAdditions>

    </android>

    <versionLabel></versionLabel>

</application>

This topic has been closed for replies.
Correct answer grotter

Ok, just figured this out. The cert I created was somehow malformed. I simply created a new one with the Flash IDE which worked fine. Any other method of creating the cert that I tried failed, including the keytool command line utility.

2 replies

grotterAuthorCorrect answer
Participant
January 2, 2014

Ok, just figured this out. The cert I created was somehow malformed. I simply created a new one with the Flash IDE which worked fine. Any other method of creating the cert that I tried failed, including the keytool command line utility.

grotterAuthor
Participant
January 2, 2014

I should also mention that I deleted the previous version of the app on the devices before installing.

thanks again!

Greg