首页 > 解决方案 > Android 内部测试与我的设备不兼容

问题描述

我在 Google Play 上发布了我的应用程序作为内部测试。将测试人员的电子邮件添加到测试人员列表中,并向他们发送选择加入的 URL 以下载应用程序。

他们设法从 Google Play 下载了该应用程序,没有任何问题。

我尝试使用我的 OnePlus One 下载该应用程序,但我收到“此应用程序与您的设备不兼容”。在 Google Play 中,即使手机在 Google Play 控制台中被列为兼容。

在此处输入图像描述

我使用我在测试人员列表中添加的帐户连接到 Play 商店,该帐户与我的开发帐户不同。

如何检测兼容性问题的来源?

这是我的应用程序 build.gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.danilecx.oofmusicplayer"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 2
        versionName "1.0.1"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

    implementation 'com.google.android.gms:play-services-ads:17.1.3'
}

AndroidManifest.xml:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.danilecx.oofmusicplayer">
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_oof"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_oof_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <meta-data
            android:name="com.google.android.gms.ads.APPLICATION_ID"
            android:value="ca-app-pub-xxxxxxxxxxxxxxxx~xxxxxxxxxx"/>
    </application>

</manifest>

更新:安装适用于 BlueStacks,但不适用于 Nox 或我的手机(OnePlus One)。

标签: androidgoogle-playcompatibilitygoogle-play-console

解决方案


我自己找到了解决方案,尽管我会分享它。

问题不是来自我的代码,而是来自我的 OnePlus One。

将 build.prop 中的指纹更改为“ro.build.fingerprint=oneplus/bacon/A0001:4.4.4/KTU84Q/XNPH38R:user/release-keys”后,它起作用了!

有关更多信息,请访问此reddit 线程。希望这可以帮助 !


推荐阅读