繁体   English   中英

在Google Play中发布多个APK

[英]Publish multiple apks in google play

多个APK支持手册的指导下,我试图针对不同的屏幕尺寸发布三个不同的APK。 我创建了以下过滤器:
对于小屏幕:

<supports-screens
    android:smallScreens="true"
    android:normalScreens="false"
    android:largeScreens="false"
    android:xlargeScreens="false"
    android:requiresSmallestWidthDp="320"/>

对于普通和大屏幕:

<supports-screens
    android:smallScreens="false"
    android:normalScreens="true"
    android:largeScreens="true"
    android:xlargeScreens="false"
    android:requiresSmallestWidthDp="540"/>

对于超大屏幕:

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

其余所有三个清单看起来都一样。 我已将此APK上传到Google Play,并且过滤器似乎正确。

问题:当我将应用程序安装到其他设备上时,它始终会安装适用于大屏幕和普通屏幕的版本,即使在具有全高清屏幕的Galaxy S4和HTC One上,我也进行了测试。

我在游戏机控制台中只有一个警告: Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code. Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code.
这是我的游戏机的样子: 在此处输入图片说明


有人知道我的配置有什么问题吗? 提前致谢。

由于尚无法发表评论,因此必须使用“答案”功能。

我猜“大,小和xlarge”表示dp值。 但是,密度无关像素(dp)背后的想法是为拥有480 * 800和全高清(1920 * 1080)分辨率的4英寸手机的用户带来相同的体验。 因此,也许您应该在8英寸或10英寸的平板电脑上测试您的应用,然后看看您得到了什么,因为每4英寸的手机都应具有相同的dp宽度,但是即使分辨率相同的10英寸的平板电脑也不应具有相同的dp宽度。

这对于您阅读有关android中与密度无关的像素可能会很有趣

希望我能帮到你

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM