【问题标题】:APK Compatibility issue for 7 and 10 inch tablets.7 英寸和 10 英寸平板电脑的 APK 兼容性问题。
【发布时间】:2013-11-01 09:45:50
【问题描述】:

我已经在 google play store 上发布了我的 APK,一旦我上传了新的 APK,它表明 APK 不兼容 7 英寸和 10 英寸的桌子。

我已添加“layout-sw600dp”和“layout-sw720dp”文件夹并删除“layout-large”和“layout-xlarge”文件夹,然后再次上传 APK 仍然显示相同。

我的应用程序并非设计为“Multipan”应用程序,但我仍想让它与 7 英寸和 10 英寸平板电脑兼容。

我该怎么做?请建议,提前致谢。

【问题讨论】:

  • 好问题,但我不知道。

标签: android google-play apk compatibility publish


【解决方案1】:

如果你想支持所有屏幕,你必须在你的 AndroidManifest 中有这些行:

<supports-screens 
    android:resizeable="true" 
    android:normalScreens="true" 
    android:largeScreens="true" 
    android:anyDensity="true" 
    android:smallScreens="true">
</supports-screens>

<compatible-screens>
    <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />

    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <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" />

    <!-- Special case for new phones with large screens 5"+ and Nexus 7 -->
    <screen android:screenSize="normal" android:screenDensity="480" />
    <screen android:screenSize="large" android:screenDensity="213" />
    <screen android:screenSize="large" android:screenDensity="480" />
</compatible-screens>

【讨论】:

    【解决方案2】:

    在你的清单文件中添加

    支持屏幕 安卓:smallScreens="true" 安卓:正常屏幕=“真” 安卓:大屏幕=“真” 机器人:xlargeScreens =“真” android:anyDensity="true" />

    【讨论】:

      猜你喜欢
      • 2013-06-18
      • 1970-01-01
      • 1970-01-01
      • 2013-08-18
      • 1970-01-01
      • 1970-01-01
      • 2013-08-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多