2014-10-09 111 views
0

我试过所有解决方案,我的问题。 这里是我的清单代码谷歌播放说您的设备不与此应用程序兼容

<?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> 

我上传的应用程序谷歌播放,然后开始尝试在不同的Android手机。 有些设备在搜索结果中找到应用程序,有些设备找不到。 Lg G2无法找到应用程序。我发送应用程序链接,然后谷歌播放说不兼容。

+0

不确定,但也许它可能是由兼容屏幕部分引起的,您没有xxhdpi那里。试着完全删除该部分。 – httpdispatch 2014-10-09 10:10:01

回答

0

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

其实,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

+0

我注意到LG G2没有外部存储。 因为这个可能吗? '' – sipdorus 2014-10-09 10:21:05

+0

我不这么认为。在尝试别的之前试试我给的解决方案;) – mithrop 2014-10-09 10:35:10

+0

好吧,我会尝试这两种方法,因为我的应用程序不需要外部存储。但尝试谷歌播放将需要几个小时。 – sipdorus 2014-10-09 10:40:13

0

它看起来像你正试图以支持所有屏幕尺寸?

如果是这种情况,只需删除兼容屏幕标签和支持屏幕标签。如果你想过滤某些屏幕,你只能使用它!

<?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> 
+0

是的,我想支持所有的屏幕尺寸。我有不同的xml文件和图像文件夹中的小 - 大 - 正常 - xlarge。如果我删除这个标签,我的应用程序是否会到达此文件夹? – sipdorus 2014-10-09 12:49:57

+1

是的。如果某个配置没有文件夹,则默认为默认文件夹 – MobileMon 2014-10-09 13:00:43

相关问题