播放商店报告“您的设备与此版本不兼容”,但它可以在Android模拟器上通过adb进行安装

时间:2017-10-13 07:25:39

标签: android android-emulator google-play

我有一个应用程序,我发布到私人Google Play Alpha。我可以安装这个完全相同的APK到我的Android模拟器就好了  adb pm install

但是通过Google Play商店,它标记为与

完全相同的模拟器

您的设备与此版本不兼容。

这是相同的apk。我无法弄清楚如何获得有关游戏商店认为它不兼容的原因的任何信息。

我的清单看起来像这样:

<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="2"
android:versionName="1.0"
package="com.company.example"
platformBuildVersionCode="26"
platformBuildVersionName="8.0.0">

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

    <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_EXTERNAL_STORAGE" />

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

    <uses-permission
        android:name="com.android.vending.BILLING" />

    <meta-data
        android:name="android.support.VERSION"
        android:value="26.0.0-alpha1" />

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

    <permission
        android:name="com.company.example.permission.C2D_MESSAGE"
        android:protectionLevel="0x2" />

    <uses-permission
        android:name="com.company.example.permission.C2D_MESSAGE" />

    <application
        android:theme="@ref/0x7f0b01b8"
        android:label="@ref/0x7f090022"
        android:icon="@ref/0x7f030000"
        android:allowBackup="true"
        android:hardwareAccelerated="true"
        android:supportsRtl="true">

        <meta-data
            android:name="com.google.firebase.messaging.default_notification_icon"
            android:resource="@ref/0x7f02005b" />

        <meta-data
            android:name="com.google.firebase.messaging.default_notification_color"
            android:resource="@ref/0x7f0e001d" />

        <service
            android:name="com.company.example.MyFirebaseMessagingService">

            <intent-filter>

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

        <receiver
            android:name="com.company.example.FCMbroadcast"
            android:permission="com.google.android.c2dm.permission.SEND">

            <intent-filter>

                <action
                    android:name="com.google.android.c2dm.intent.RECEIVE" />

                <action
                    android:name="com.google.android.c2dm.intent.REGISTRATION" />

                <category
                    android:name="com.servpro.activity" />
            </intent-filter>
        </receiver>

        <activity
            android:name="com.company.example.SplashScreen">

            <intent-filter>

                <action
                    android:name="android.intent.action.MAIN" />

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


        <service
            android:name="com.google.firebase.messaging.FirebaseMessagingService"
            android:exported="true">

            <intent-filter
                android:priority="-500">

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

        <receiver
            android:name="com.google.android.gms.measurement.AppMeasurementReceiver"
            android:enabled="true"
            android:exported="false" />

        <receiver
            android:name="com.google.android.gms.measurement.AppMeasurementInstallReferrerReceiver"
            android:permission="android.permission.INSTALL_PACKAGES"
            android:enabled="true">

            <intent-filter>

                <action
                    android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>

        <service
            android:name="com.google.android.gms.measurement.AppMeasurementService"
            android:enabled="true"
            android:exported="false" />

        <receiver
            android:name="com.google.firebase.iid.FirebaseInstanceIdReceiver"
            android:permission="com.google.android.c2dm.permission.SEND"
            android:exported="true">

            <intent-filter>

                <action
                    android:name="com.google.android.c2dm.intent.RECEIVE" />

                <action
                    android:name="com.google.android.c2dm.intent.REGISTRATION" />

                <category
                    android:name="com.company.example" />
            </intent-filter>
        </receiver>

        <receiver
            android:name="com.google.firebase.iid.FirebaseInstanceIdInternalReceiver"
            android:exported="false" />

        <service
            android:name="com.google.firebase.iid.FirebaseInstanceIdService"
            android:exported="true">

            <intent-filter
                android:priority="-500">

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

        <provider
            android:name="com.google.firebase.provider.FirebaseInitProvider"
            android:exported="false"
            android:authorities="com.company.example.firebaseinitprovider"
            android:initOrder="100" />

        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@ref/0x7f0d0006" />
    </application>
</manifest>

我的模拟器版本是Android 8.0.0,API是26。

1 个答案:

答案 0 :(得分:0)

我发现它使用的问题Wifi功能权限模拟器没有wifi所以我添加以下代码像wifi不需要强制它解决了我的问题。

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