我刚刚在 Google Play 上发布了我的第一个应用程序,而我开发的手机被列为不兼容。经过一番研究,我将这些行添加到 AndroidManifest.xml:
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
在应用商店更新 apk 后,我的设备在兼容设备列表中显示为兼容,但在应用的 Google Play 页面上显示为不兼容。它不会让我安装到我的手机上。以下是图片:
我怎样才能解决这个问题?
这是我的 AndroidManifest.xml:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mypackage"
android:versionCode="3"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="13" android:targetSdkVersion="13" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name="com.mypackage.Activity"
android:screenOrientation="portrait"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.READ_SMS"/>
<uses-permission android:name="android.permission.READ_CONTACTS"/>
<uses-feature android:name="android.hardware.telephony" android:required="false" />
<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />
<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
</manifest>
package: name='com.mypackage' versionCode='3' versionName='1.0'
sdkVersion:'13'
targetSdkVersion:'13'
application-label:'My Package'
application-icon-120:'res/drawable-ldpi/icon.png'
application-icon-160:'res/drawable-mdpi/icon.png'
application-icon-240:'res/drawable-hdpi/icon.png'
application: label='My Package' icon='res/drawable-mdpi/icon.png'
launchable-activity: name='com.mypackage.MyPackage' label='My Package' icon=''
uses-permission:'android.permission.READ_SMS'
uses-permission:'android.permission.READ_CONTACTS'
uses-feature-not-required:'android.hardware.telephony'
uses-feature-not-required:'android.hardware.screen.portrait'
uses-feature-not-required:'android.hardware.touchscreen'
main
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240'