与Nexus 6的Android应用程序兼容性问题

为了支持Nexus 6屏幕尺寸和密度,我在清单中有以下内容:

<compatible-screens>
    <screen android:screenSize="normal" android:screenDensity="560" />
    <screen android:screenSize="large" android:screenDensity="560" />
    <screen android:screenSize="xlarge" android:screenDensity="560" />
    </compatible-screens>

我的清单中的完整值列表如下所示. Google Play说我的应用程序不兼容.不知道我在这里缺少什么..

<compatible-screens>
                    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
                    <screen android:screenSize="normal" android:screenDensity="480" />
                    <screen android:screenSize="normal" android:screenDensity="560" />
                    <screen android:screenSize="normal" android:screenDensity="640" />
                    <screen android:screenSize="large" android:screenDensity="ldpi" />
                    <screen android:screenSize="large" android:screenDensity="mdpi" />
                    <screen android:screenSize="large" android:screenDensity="213" />
                    <screen android:screenSize="large" android:screenDensity="hdpi" />
                    <screen android:screenSize="large" android:screenDensity="xhdpi" />
                    <screen android:screenSize="large" android:screenDensity="480" />
                    <screen android:screenSize="large" android:screenDensity="560" />
                    <screen android:screenSize="large" android:screenDensity="640" />
                    <screen android:screenSize="xlarge" android:screenDensity="ldpi" />
                    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
                    <screen android:screenSize="xlarge" android:screenDensity="213" />
                    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
                    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
                    <screen android:screenSize="xlarge" android:screenDensity="480" />
                    <screen android:screenSize="xlarge" android:screenDensity="560" />
                    <screen android:screenSize="xlarge" android:screenDensity="640" />
                </compatible-screens>
我也很难让我的应用程序在Nexus 6上运行.我终于找到了如何做到这一点,希望它能为你工作.

>首先,您需要在AndroidManifest中将screenDensity设置为560以获得兼容屏幕.如果没有在screenDensity列表中指定它,它就无法工作.我必须将屏幕尺寸设置为正常,密度为560才能使其正常工作.
>然后,我必须为应用程序提供xxhdpi(也许是xxxhdpi)图标.我同时提供了两个图标,所以我不知道xxxhdpi是否是强制性的.但是在这个链接:http://android-developers.blogspot.com/2014/10/getting-your-apps-ready-for-nexus-6-and.html,据说你应该提供至少一个xxxhdpi图标.

相关文章
相关标签/搜索