【发布时间】: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