Android xml可以';不能用flash解析
我正在使用AIR for flash创建一个android应用程序(借助本机扩展)。当我试图为android编译air应用程序时,它告诉我它无法解析我的应用程序描述文件(xml)。我不知道我的xml文件出了什么问题。Flash创建自己的应用程序描述符文件,我添加的唯一行是本机扩展所需的3个活动行Android xml可以';不能用flash解析,android,xml,air,flash-cs6,Android,Xml,Air,Flash Cs6,我正在使用AIR for flash创建一个android应用程序(借助本机扩展)。当我试图为android编译air应用程序时,它告诉我它无法解析我的应用程序描述文件(xml)。我不知道我的xml文件出了什么问题。Flash创建自己的应用程序描述符文件,我添加的唯一行是本机扩展所需的3个活动行 <?xml version="1.0" encoding="UTF-8" standalone="no" ?> <application xmlns="http://ns.adobe.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>test</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>test</filename>
<description/>
<!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>test</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>test.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
</manifest>]]>
</manifestAdditions>
</android>
<activity android:name="com.freshplanet.ane.AirFacebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:name="com.freshplanet.ane.AirFacebook.DialogActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:name="com.freshplanet.ane.AirFacebook.ExtendAccessTokenActivity"/>
<extensions>
<extensionID>com.freshplanet.AirFacebook</extensionID>
</extensions>
</application>
测试
1.0.0
测试
测试
test.swf
标准
假的
真的
假的
肖像
中央处理器
假的
假的
假的
]]>
com.freshplanet.AirFacebook
您的应用程序描述符看起来有点凌乱。您应该注意在正确的位置添加所需的信息。对于android,它位于
标记之间的CDATA
节点中。这应该如下所示:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>test</id>
<versionNumber>1.0.0</versionNumber>
<versionLabel/>
<filename>test</filename>
<description/>
<!-- To localize the description, use the following format for the description element.<description><text xml:lang="en">English App description goes here</text><text xml:lang="fr">French App description goes here</text><text xml:lang="ja">Japanese App description goes here</text></description>-->
<name>test</name>
<!-- To localize the name, use the following format for the name element.<name><text xml:lang="en">English App name goes here</text><text xml:lang="fr">French App name goes here</text><text xml:lang="ja">Japanese App name goes here</text></name>-->
<copyright/>
<initialWindow>
<content>test.swf</content>
<systemChrome>standard</systemChrome>
<transparent>false</transparent>
<visible>true</visible>
<fullScreen>false</fullScreen>
<aspectRatio>portrait</aspectRatio>
<renderMode>cpu</renderMode>
<autoOrients>false</autoOrients></initialWindow>
<icon/>
<customUpdateUI>false</customUpdateUI>
<allowBrowserInvocation>false</allowBrowserInvocation>
<android>
<manifestAdditions>
<![CDATA[
<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<application android:enabled="true">
<activity android:name="com.freshplanet.ane.AirFacebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:name="com.freshplanet.ane.AirFacebook.DialogActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
<activity android:name="com.freshplanet.ane.AirFacebook.ExtendAccessTokenActivity"/>
</application>
</manifest>
]]>
</manifestAdditions>
</android>
<extensions>
<extensionID>com.freshplanet.AirFacebook</extensionID>
</extensions>
</application>
测试
1.0.0
测试
测试
test.swf
标准
假的
真的
假的
肖像
中央处理器
假的
假的
假的
]]>
com.freshplanet.AirFacebook
什么版本的AIR?这是如图所示的3.2吗?是的,air的版本是3.2