我已经在Google Play商店发布了我的APK,一旦我上传了新的APK,就会建议APK与7英寸和10英寸的桌子不兼容。
我添加了“layout-sw600dp”和“layout-sw720dp”文件夹并删除了“layout-large”和“layout-xlarge”文件夹,然后再次上传APK仍显示相同的内容。
我的应用程序不是设计为“Multipan”应用程序仍然我想使它与7英寸和10英寸平板电脑兼容。
我该怎么办?请提前建议,谢谢。
答案 0 :(得分:0)
如果您想支持所有屏幕,您必须在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>
答案 1 :(得分:0)
添加您的清单文件
<强>支持屏 机器人:smallScreens = “真” 机器人:normalScreens = “真” 机器人:largeScreens = “真” android:xlargeScreens =“true” android:anyDensity =“true”/&gt;