本文介绍了安卓:我的应用程序不支持Galxy S 4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更新我在商店的应用程序,使之与Galaxy S 4兼容。

I'm trying to update my application on the store to make it compatible with the Galaxy S 4.

我的应用程序使用的地图V2,它不能在平板电脑上安装,拥有的minSdkVersion和targetSdkVersion都设定为9。

My app uses Maps V2, it must not be installed on tablets, has minSdkVersion and targetSdkVersion both set to 9.

这是我的清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="it...."
    android:versionCode="113"
    android:versionName="1.1.3" >

    <uses-sdk
        android:minSdkVersion="9"
        android:targetSdkVersion="9" />

    <permission
        android:name="it....permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_CORSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_GPS" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <uses-feature
        android:name="android.hardware.camera.autofocus"
        android:required="false" />

    <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" />
        <screen
            android:screenDensity="480"
            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" />
        <screen
            android:screenDensity="480"
            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" />
        <screen
            android:screenDensity="480"
            android:screenSize="large" />
    </compatible-screens>

    <application
        android:debuggable="false"
        android:icon="@drawable/ic_launcher"
        android:label="..." >
        <uses-library android:name="com.google.android.maps" />

        <activity
            ...
            List of all the activities
            ...
        </activity>

        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="AIz  ...  j-Y" />

    </application>

</manifest>

请问有人知道为什么Galaxy S的4,不支持,当我尝试上载我的应用程序的商店吗?

Does someone knows why the Galaxy S 4 is not supported when i try to upload my application on the store?

这是我getwhen我看看我的新APK兼容设备在Android开发者控制台:

This is what i getwhen I look at the compatible devices of my new APK in the Android Developer Console:

P.S。在screenDensity属性的屏幕的标签我必须使用,而不是xxhdpi值480,因为它是不支持的。

P.S. In the "screenDensity" attribute for the "screen" tag I have to use the value "480" instead of "xxhdpi" because it is not supported.

这是我得到的错误,如果我用xxhdpi:

That's the error I get if I use "xxhdpi":

错误  'xxhdpi')。 AndroidManifest.xml中/ ICSMob线84的Andr​​oid AAPT问题

P.P.S。该xxhdpi屏幕支持:我可以看到它时,我点击APK线的开发控制台和扩大屏幕布局部分。在这里,它是:

P.P.S. the xxhdpi screen is supported: I can see it when I click on the APK line in the Dev Console and expand the screen layout section. Here it is:

推荐答案

只是编辑目标SDK版本至17日在清单

Just Edit Target SDK version to 17 in manifest

    android:targetSdkVersion="17"

这篇关于安卓:我的应用程序不支持Galxy S 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 19:23