【问题标题】:Google Play Says Your Device isnt compatible with this applicationGoogle Play 说您的设备与此应用程序不兼容
【发布时间】:2014-10-09 10:03:06
【问题描述】:

我为我的问题尝试了所有解决方案。 这是我的清单代码

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.turk.bakistik"
android:versionCode="1"
android:versionName="1.0" >
<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

<compatible-screens>

    <!-- 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" />
    <!-- large screens -->
    <screen
        android:screenDensity="hdpi"
        android:screenSize="large" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="large" />
    <!-- xlarge screens -->
    <screen
        android:screenDensity="hdpi"
        android:screenSize="large" />
    <screen
        android:screenDensity="xhdpi"
        android:screenSize="xlarge" />
</compatible-screens>

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

 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.screen.portrait" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >

    <activity
        android:name="com.turk.bakistik.MainActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustResize" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.turk.bakistik.anaekran"
        android:screenOrientation="portrait"
         />
    <activity
        android:name="com.turk.bakistik.Kayitol"
        android:label="@string/title_activity_kayitol"
        android:windowSoftInputMode="adjustResize"
        android:screenOrientation="portrait" >
    </activity>     
</application>
</manifest>

我将应用程序上传到 google play,然后开始尝试不同的安卓手机。 有些设备在搜索结果中找到了应用程序,有些设备找不到。 Lg G2 找不到应用程序。我发送了应用程序链接然后 google play 说不兼容。

【问题讨论】:

  • 不确定,但可能是由 compatible-screens 部分引起的,您那里没有 xxhdpi。尝试完全删除该部分。

标签: android google-play android-manifest


【解决方案1】:

您正在添加兼容屏幕的(可选)列表。

实际上,LG G2 具有以下属性:1920 x 1080p 所以 432 ppp,这是一个真正的定义。

在官方文档(link to official doc)中,您可以阅读:

注意:此属性目前不接受 xxhdpi 作为有效值,但您可以指定 480 作为值,这是 xhdpi 屏幕的近似阈值。

所以你可以为 LG G2 添加类似的内容(如果需要,可以调整):

<screen
    android:screenDensity="480"
    android:screenSize="xlarge" />

对于未来,请确保您需要限制某些屏幕尺寸。您在这里对您的应用进行了一些限制:请务必不要忘记一种屏幕尺寸。

来源和链接

compatible-screens documentation

Range of screens supported

【讨论】:

  • 我注意到 LG G2 没有外部存储。有可能因为这个吗? &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  • 我不这么认为。在尝试其他方法之前先尝试我提供的解决方案;)
  • 好的,我会尝试这两个,因为我的应用程序不需要外部存储。但是尝试使用 google play 需要几个小时。
【解决方案2】:

您似乎正在尝试支持所有屏幕尺寸?

如果是这种情况,只需删除兼容屏幕标签并完全支持屏幕标签。仅当您想过滤某些屏幕时才使用它!

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


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

 <uses-permission android:name="android.permission.INTERNET" />
 <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:name="android.hardware.screen.portrait" />

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >

    <activity
        android:name="com.turk.bakistik.MainActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:windowSoftInputMode="adjustResize" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="com.turk.bakistik.anaekran"
        android:screenOrientation="portrait"
         />
    <activity
        android:name="com.turk.bakistik.Kayitol"
        android:label="@string/title_activity_kayitol"
        android:windowSoftInputMode="adjustResize"
        android:screenOrientation="portrait" >
    </activity>     
</application>
</manifest>

【讨论】:

  • 是的,我想支持所有屏幕尺寸。我在文件夹中有用于 small-large-normal-xlarge 的不同 xml 文件和图像。如果我删除这个标签,我的应用程序会到达这个文件夹吗?
  • 是的。而如果某个配置没有文件夹,则默认为默认文件夹
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多