应用程序描述符无法解析AIR

时间:2014-01-26 00:37:27

标签: android actionscript-3 air

我收到错误:无法解析应用程序描述符

当试图编译到空气4.0 :(任何想法?

我能够在Flash CS5.5中编译但在切换到cs6.0之后我遇到了问题。

我也尝试使用admob广告,如底部所示。这也可能是错误的来源。这让我疯狂,差不多27个小时,没有解决方案。

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<application xmlns="http://ns.adobe.com/air/application/4.0">
  <id>HappyCutePuppy</id>
  <versionNumber>1.0.8</versionNumber>
  <versionLabel>1</versionLabel>
  <filename>Happy Cute Puppy</filename>
<description>  <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>Happy Cute Puppy</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>  <copyright/>
  <initialWindow>
    <content>HappyCutePuppy.swf</content>
    <systemChrome>standard</systemChrome>
    <transparent>false</transparent>
    <visible>true</visible>
    <fullScreen>true</fullScreen>
    <aspectRatio>landscape</aspectRatio>
    <renderMode>cpu</renderMode>
    <autoOrients>false</autoOrients>
  </initialWindow>
  <icon>
    <image36x36>icons/36.png</image36x36>
    <image48x48>icons/48.png</image48x48>
    <image72x72>icons/72.png</image72x72>
  </icon>
  <customUpdateUI>false</customUpdateUI>
  <allowBrowserInvocation>false</allowBrowserInvocation>
  <manifest android:installLocation="auto">
     <uses-sdk android:targetSdkVersion="11"/>
     <uses-sdk android:minSdkVersion="8"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <application>
       <activity android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:name="com.google.ads.AdActivity"/> 
    </application>
</manifest>
  <android>
    <manifestAdditions>
      <![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
</manifest>]]>
    </manifestAdditions>
  </android>
  <extensions>
    <extensionID>so.cuo.platform.admob</extensionID>
  </extensions>
</application>

1 个答案:

答案 0 :(得分:2)

在查看http://help.adobe.com/en_US/air/build/WS5b3ccc516d4fbf351e63e3d118666ade46-7f84.html时,他们声明android部分如下:

<android> 
    <colorDepth>...</colorDepth> 
    <manifestAdditions 
            <manifest>...</manifest> 
        ]]> 
    </manifestAdditions 
</android>

你的清单定义在android标记之外。