我做了一个小的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你能告诉我我哪里做错了吗?
发布于 2013-07-06 00:02:59
将此行<application xmlns="ns.adobe.com/air/application/2.5">;更改为<application xmlns="ns.adobe.com/air/application/3.0">;
看看它能不能用
发布于 2013-07-05 23:47:53
您在上面发布的XML文件称为应用程序描述符。文件格式的名称空间编号显示在第一个节点中-
<application xmlns="http://ns.adobe.com/air/application/2.5">您需要更改此数字以匹配您正在使用的AIR编译器的版本。您可能正在使用3.0或更高版本,这就是您看到该消息的原因。将数字更改为3.0,而不是2.5,它应该可以正常工作。
https://stackoverflow.com/questions/17492626
复制相似问题