您的设备与此版本的Play商店不兼容

时间:2017-03-31 16:14:55

标签: android google-play android-gradle android-manifest

这是我的清单文件

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="***********"
android:installLocation="preferExternal">
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.RECEIVE_SMS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT"  android:required="true"/>
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission android:name="android.permission.GET_TASKS" />

<uses-feature android:name="android.hardware.nfc.hce" android:required="true" />
<uses-permission android:name="android.permission.NFC" android:required="true" />
<uses-feature
    android:name="android.hardware.camera"
    android:required="false" />
<uses-feature
    android:name="android.hardware.camera.autofocus"
    android:required="false" />
<uses-feature
    android:name="android.hardware.camera.flash"
    android:required="false" />

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


<uses-feature android:name="android.hardware.screen.portrait" />
<uses-feature
    android:name="android.hardware.wifi"
    android:required="false" />
<uses-feature
    android:name="android.hardware.touchscreen"
    android:required="false" />

<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />

<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />


<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />


<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />

<uses-feature
    android:name="android.hardware.telephony"
    android:required="false" />
<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />
<permission
    android:name="ge.unipay.android.permission.C2D_MESSAGE"
    android:protectionLevel="signature" />
<application
    android:name=".UApplication"
    android:icon="@drawable/ic_app_icon"
    android:label="@string/app_name"
    android:theme="@style/NoTitleBar"
    tools:replace="android:icon">
    <activity
        android:name=".activities.LauncherActivity"
        android:label="@string/app_name"
        android:screenOrientation="portrait"
        android:configChanges="locale"

        android:windowSoftInputMode="stateAlwaysHidden">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

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






    <activity
        android:name=".activities.welcometutorial.ProductTourActivity"
        android:hardwareAccelerated="false"
        android:screenOrientation="portrait"
        android:configChanges="locale"
        android:theme="@style/Theme.AppCompat.Light.NoActionBar" />




    <receiver
        android:name=".services.gcm.GcmBroadcastReceiver"
        android:exported="true"
        android:permission="com.google.android.c2dm.permission.SEND">
        <intent-filter>
            <action android:name="com.google.android.c2dm.intent.RECEIVE" />

            <category android:name="com.google.android.gcm.demo.app" />
        </intent-filter>
    </receiver>

    <service android:name=".services.gcm.GcmMessageHandler" />

    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <meta-data android:name="android.max_aspect"
        android:value="ratio_float"/>


    <service
        android:name=".services.CheckEmailVerification"
        android:enabled="true" />


    <service android:name=".firabase.MyFirebaseMessagingService">
        <intent-filter>
            <action android:name="com.google.firebase.MESSAGING_EVENT" />
        </intent-filter>
    </service>

    <service android:name=".firabase.MyFirebaseInstanceIDService">
        <intent-filter>
            <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
        </intent-filter>
    </service>



</application>

这是我的build.gradle文件中的部分代码

 android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {
    applicationId "********"
    minSdkVersion 15
    targetSdkVersion 22
    versionCode 45
    versionName "1.0.44"
    multiDexEnabled true
    renderscriptSupportModeEnabled true


    generatedDensities = []
    ndk {
        moduleName "secret-jni"
        abiFilters "armeabi", "armeabi-v7a"
    }
   }
    aaptOptions {
    additionalParameters "--no-version-vectors"
    }
    lintOptions {
    checkReleaseBuilds false
    }
    dexOptions {
    javaMaxHeapSize "4g"
    }

我有华为荣誉6设备,当我从usb运行我的应用程序然后一切正常工作。但我有一个问题。我在Play商店发布我的应用程序,我无法从Playstore下载。消息是

your device isn't compatible with this version

我的设备的Android版本是4.4.2,我使用最小版本15.如何我可以解决我的问题? P.S 我认为,问题是Nfc的许可。华为不支持NFC。

1 个答案:

答案 0 :(得分:0)

更改以下内容

    <uses-feature android:name="android.hardware.nfc.hce" android:required="false" />
<uses-permission android:name="android.permission.NFC" android:required="false" />