Search code examples
androidflashairadobe

Adobe Air: Error 307


I made a little flash game and I am trying to export it into an APK to use it on Android, this is my first "project" so this is completely new to me, this is my XML file:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<application xmlns="http://ns.adobe.com/air/application/2.5">
    <id>com.rockpaperguitars.test1</id>
    <versionNumber>1.0.0</versionNumber>
    <filename>test1</filename>
    <description>just a test</description>
    <name>tablature game</name>
    <copyright>Ryan S</copyright>
    <initialWindow>
        <content>test1.swf</content>
        <visible>true</visible>
        <fullScreen>true</fullScreen>
        <autoOrients>false</autoOrients>
            <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
        <aspectRatio>landscape</aspectRatio>
        <renderMode>gpu</renderMode>
    </initialWindow>
    <customUpdateUI>false</customUpdateUI>
    <allowBrowserInvocation>false</allowBrowserInvocation>
    <icon>
        <image36x36>icon36.png</image36x36>
        <image48x48>icon48.png</image48x48>
        <image72x72>icon72.png</image72x72>
    </icon>
    <android>
        <manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.WAKE_LOCK"/></manifest>
]]></manifestAdditions>
    </android>
    <versionLabel>1</versionLabel>
</application>

I then tried to package it all using:

adt -package -target apk -storetype pkcs12 -keystore TestFlashAndroidApp.p12 Tablature.apk TestflashAndroidApp.xml test1.swf icon36.png icon48.png icon72.png

But I am getting this error:

error 301: application descriptor must be at least namespace 3.0

Can you tell me what I am doing wrong please?


Solution

  • change this line <application xmlns="ns.adobe.com/air/application/2.5">; to <application xmlns="ns.adobe.com/air/application/3.0">;

    and see if it works