首页 > 解决方案 > Actionscript 3.0 命名空间在应用程序描述符文件中无效

问题描述

我正在尝试制作一个 Android 应用程序。在我尝试实施广告之前,一切都运行良好。现在,当我尝试将我的游戏发布到我的手机时,它给了我错误消息“创建文件时出错。应用程序描述符文件中的命名空间无效”。我已经尝试过更改并在网上寻找了很长一段时间,但没有解决这个问题。

    <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/20.0">
  <id>keepmoving</id>
  <versionNumber>1.0.2</versionNumber>
  <versionLabel></versionLabel>
  <filename>keep moving</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>keep moving</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>keep%20moving.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <aspectRatio>portrait</aspectRatio>
    <renderMode>direct</renderMode>
    <autoOrients>false</autoOrients></initialWindow>
  <icon/>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
<android>
        <manifestAdditions><![CDATA[
            <manifest android:installLocation="auto">
                <uses-permission android:name="android.permission.INTERNET"/>
                <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
                <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
                 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
                 <application>
 <meta-data android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
                   <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent"/>
                 </application>
            </manifest>
        ]]></manifestAdditions>
    </android>  
  <extensions>
    <extensionID>so.cuo.platform.admob</extensionID>
  </extensions>
</application>

标签: actionscript-3namespaces

解决方案


我在使用 Adob​​e Air 24 时遇到了同样的问题。升级到 Adob​​e Air 31 为我解决了这个问题。


推荐阅读