1

我有一个 Galaxy Note 5,我无法安装该应用程序,但它可以在其他手机和平板电脑上运行。

我认为这可能与手机具有四高清屏幕但其他似乎工作正常有关。我不知道还有什么不同。我

转到谷歌开发者控制台,注释 5 甚至不在所有设备的列表中。

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

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


    <!-- all normal size screens -->
    <screen android:screenDensity="ldpi" android:screenSize="normal" />
    <screen android:screenDensity="mdpi" android:screenSize="normal" />
    <screen android:screenDensity="hdpi" android:screenSize="normal" />
    <screen android:screenDensity="xhdpi" android:screenSize="normal" />


    <!-- all large size screens -->
    <screen android:screenDensity="ldpi" android:screenSize="large" />
    <screen android:screenDensity="mdpi" android:screenSize="large" />
    <screen android:screenDensity="hdpi" android:screenSize="large" />
    <screen android:screenDensity="xhdpi" android:screenSize="large" />

    <!-- all x-large size screens -->
    <screen android:screenDensity="ldpi" android:screenSize="xlarge" />
    <screen android:screenDensity="mdpi" android:screenSize="xlarge" />
    <screen android:screenDensity="hdpi" android:screenSize="xlarge" />
    <screen android:screenDensity="xhdpi" android:screenSize="xlarge" />


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


    <!-- For xxhdpi devices you can use 480 as an int value -->
    <screen android:screenDensity="480" android:screenSize="small" />
    <screen android:screenDensity="480" android:screenSize="normal" />
    <screen android:screenDensity="480" android:screenSize="large" />
    <screen android:screenDensity="480" android:screenSize="xlarge" />

    <!-- For xxxhdpi devices you can use 640 as an int value -->
    <screen android:screenDensity="640" android:screenSize="small" />
    <screen android:screenDensity="640" android:screenSize="normal" />
    <screen android:screenDensity="640" android:screenSize="large" />
    <screen android:screenDensity="640" android:screenSize="xlarge" />

</compatible-screens>
4

1 回答 1

0

只需尝试添加这段代码

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

<!-- all normal size screens -->
<screen
    android:screenDensity="ldpi"
    android:screenSize="normal" />
<screen
    android:screenDensity="mdpi"
    android:screenSize="normal" />
<screen
    android:screenDensity="hdpi"
    android:screenSize="normal" />
<screen
    android:screenDensity="xhdpi"
    android:screenSize="normal" />

此代码涉及所有内容,甚至平板电脑都会引用此代码以排除平板电脑

于 2016-05-25T05:51:23.433 回答