简体   繁体   English

在Google Play中发布多个APK

[英]Publish multiple apks in google play

Guided by Multiple APK Support manual I'm trying to publish three different apks for different screen sizes. 多个APK支持手册的指导下,我试图针对不同的屏幕尺寸发布三个不同的APK。 I've created following filters: 我创建了以下过滤器:
For small screens: 对于小屏幕:

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

For normal and large screens: 对于普通和大屏幕:

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

For xlarge screens: 对于超大屏幕:

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

In rest all three manifests looks the same. 其余所有三个清单看起来都一样。 I've uploaded this apks to google play and filters seems to be correct. 我已将此APK上传到Google Play,并且过滤器似乎正确。

The problem: When I install my application to different devices it allways installs version for normal and large screens, I've tested even on Galaxy S4 and HTC One with full hd screens. 问题:当我将应用程序安装到其他设备上时,它始终会安装适用于大屏幕和普通屏幕的版本,即使在具有全高清屏幕的Galaxy S4和HTC One上,我也进行了测试。

I've only one warning in play console: 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. Some devices are eligible to run multiple APKs. In such a scenario, the device will receive the APK with the higher version code.
This is how my play console looks like: 这是我的游戏机的样子: 在此处输入图片说明


Does anybody has any ideas what is wrong with my configuration? 有人知道我的配置有什么问题吗? Thanks in advance. 提前致谢。

Since I'm not able to comment yet, I have to use the Answer-function. 由于尚无法发表评论,因此必须使用“答案”功能。

I guess "large, small & xlarge" mean the dp-value. 我猜“大,小和xlarge”表示dp值。 But the idea behind density-independent-pixels(dp) is to bring the same experience to users who have a 4 Inch phone with 480*800 and full hd(1920*1080) Resolution. 但是,密度无关像素(dp)背后的想法是为拥有480 * 800和全高清(1920 * 1080)分辨率的4英寸手机的用户带来相同的体验。 So maybe you should test your app on an 8 or 10 Inch tablet and see what you get, because every 4 inch phone should have the same dp-width, but a 10 inch tablet even with the same resolution should not. 因此,也许您应该在8英寸或10英寸的平板电脑上测试您的应用,然后看看您得到了什么,因为每4英寸的手机都应具有相同的dp宽度,但是即使分辨率相同的10英寸的平板电脑也不应具有相同的dp宽度。

this could be interesting for you to read about density-independent-pixels in android 这对于您阅读有关android中与密度无关的像素可能会很有趣

Hope I could help you 希望我能帮到你

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

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