应用程序与Nexus 4 Android 5.1.1不兼容

时间:2015-09-17 04:26:17

标签: android

我的应用已成功上传到Play商店,运行正常 昨天我的客户遇到了他无法在 Nexus4 Android版本5.1.1上安装应用程序的问题

应用程序在使用应用程序名称搜索时未显示。当他尝试使用Chrome浏览器时,他发现有消息

应用与此设备不兼容

当我使用APK测试时,我的应用程序在Genymotion Nexus4 5.1.0版本中正常运行。

我没有在Android Manifiest中为任何屏幕添加任何限制

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tw.e2apwellness"
android:versionCode="14"
android:versionName="2.3" >

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

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />

<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Creates a custom permission so only this app can receive its messages. -->
<permission
    android:name="com.tw.e2apwellness.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />

<uses-permission android:name="com.tw.e2apwellness.permission.C2D_MESSAGE" />

<!-- GCM requires a Google account. -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
<uses-permission android:name="android.permission.VIBRATE" />

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

<application
    android:name="com.tw.e2apwellness.activity.E2APWellnessApp"
    android:hardwareAccelerated="false"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:theme="@android:style/Theme.NoTitleBar" >
    <activity
        android:name=".activity.SplashActivity"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>
    <activity
        android:name=".activity.PrivacyPolicyActivity"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name=".activity.ChangePasswordActivity"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name=".activity.LoginActivity"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name=".activity.HomeActivity"
        android:configChanges="keyboardHidden|orientation|screenSize"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"
        android:windowSoftInputMode="adjustPan" >
    </activity>
    <activity
        android:name=".activity.ShowGcmNotificationActivity"
        android:label="@string/title_activity_show_gcm_notification"
        android:theme="@style/CustomDialogTheme" >
    </activity>
    <activity
        android:name=".activity.CustomCameraActivity"
        android:screenOrientation="portrait" >
    </activity>

    <service
        android:name="com.tw.e2apwellness.service.ArticleReadSyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.ForumReplySyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.TaskSyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.TrackerSyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.QuerySyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.ScoreSyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.JoinSyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.FeedbackSyncService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.SyncAllService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.DiscussionReplyDeleteService"
        android:exported="false" >
    </service>
    <service
        android:name="com.tw.e2apwellness.service.ArticleCommentRatingSubsService"
        android:exported="false" >
    </service>
    <service android:name="com.tw.e2apwellness.service.GcmIntentService" >
    </service>

    <receiver
        android:name="com.tw.e2apwellness.receiver.GcmBroadcastReceiver"
        android:permission="com.google.android.c2dm.permission.SEND" >
        <intent-filter>

            <!-- Receives the actual messages. -->
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />
            <!-- Receives the registration id. -->
            <action android:name="com.google.android.c2dm.intent.REGISTRATION" />

            <category android:name="com.tw.e2apwellness" />
        </intent-filter>
    </receiver>
</application>

请帮助我,我被困在这里

2 个答案:

答案 0 :(得分:0)

尝试将 android:targetSdkVersion="17" 设置为 android:targetSdkVersion="22" android:targetSdkVersion="23"

答案 1 :(得分:0)

你的目标sdk版本是17(Jelly bean 4.2),这就是为什么Lollipop不受支持的原因。将您的sdk版本更新到最新的API 23或Lollipop(21,22)

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