0

How to add these Android settings to an Air for Andoid app.xml manifest?

<supports-screens android:
                  android:largeScreens="true"
                  android:xlargeScreens="true"/>

This got me a syntax error:

<android>
    <manifestAdditions>
<![CDATA[
        <manifest android:installLocation="auto">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-sdk android:minSdkVersion="8"/>
<supports-screens android:
                  android:largeScreens="true"
                  android:xlargeScreens="true"/>
 ]]>
    </manifestAdditions>
  </android>
4

1 回答 1

0

在我看来,您必须从添加中删除第一个“android:”。

<supports-screens android:
                  android:largeScreens="true"
                  android:xlargeScreens="true"/>

应该

<supports-screens android:largeScreens="true"
                  android:xlargeScreens="true"/>

通过此Adob​​e 帖子(包括以供将来参考,以防该帖子被删除):

<android>
  <manifestAdditions><![CDATA[
    <manifest android:installLocation="preferExternal">
      <supports-screens
        android:smallScreens="false"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"/>
      <compatible-screens>
        <!-- list the screens you support here -->
        <screen android:screenSize="normal" android:screenDensity="hdpi" />
        <screen android:screenSize="normal" android:screenDensity="xhdpi" />
        <screen android:screenSize="large" android:screenDensity="ldpi" />
        <screen android:screenSize="large" android:screenDensity="mdpi" />
        <screen android:screenSize="large" android:screenDensity="hdpi" />
        <screen android:screenSize="large" android:screenDensity="xhdpi" />
        <screen android:screenSize="xlarge" android:screenDensity="ldpi" />
        <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
        <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
        <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
      </compatible-screens>
    ...
    </manifest>
  ]]></manifestAdditions>
</android>
于 2013-07-31T17:06:58.600 回答