【问题标题】:Adobe Air: Error 307Adobe Air:错误 307
【发布时间】:2013-07-05 15:44:44
【问题描述】:

我制作了一个小 Flash 游戏,我正在尝试将其导出为 APK 以在 Android 上使用,这是我的第一个“项目”,所以这对我来说是全新的,这是我的 XML 文件:

<?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>

然后我尝试使用以下方法打包它:

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

但我收到此错误:

error 301: application descriptor must be at least namespace 3.0

你能告诉我我做错了什么吗?

【问题讨论】:

  • 将此行 ns.adobe.com/air/application/2.5"> 更改为 ns.adobe.com/air/application/3.0"> 看看是否有效
  • 谢谢!我收到一条新消息,请参阅下面的评论
  • 我相信这不是一个错误。尝试安装你的 APK,看看它是否有效

标签: android flash air adobe


【解决方案1】:

您在上面发布的 XML 文件称为应用程序描述符。文件格式的命名空间编号显示在第一个节点 -

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

您需要更改此数字以匹配您正在使用的 AIR 编译器的版本。您可能使用的是 3.0 或更高版本,这就是您看到该消息的原因。将数字更改为 3.0 而不是 2.5,它应该可以正常工作。

【讨论】:

    【解决方案2】:

    改变这一行 &lt;application xmlns="ns.adobe.com/air/application/2.5"&gt;;&lt;application xmlns="ns.adobe.com/air/application/3.0"&gt;;

    看看有没有效果

    【讨论】:

    • 谢谢!知道为什么我会收到以下消息吗?
    • test注意:AIR SDK 不再支持使用共享运行时打包 android。该应用程序已使用强制运行时打包。
    • 早期的 AIR 模型使用共享运行时,而在最近的更新之后,Adobe 已经转向强制运行时。可能是您没有获得最新的 AIR 更新。
    • 我刚刚从 Adob​​e 下载了 AIR SDK,但我使用的是 Flash CS6 并在其中选择了 Air 3.4...您还有其他推荐吗?
    猜你喜欢
    • 2016-12-23
    • 2014-08-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多