android - 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)。
解决方案
我自己找到了解决方案,尽管我会分享它。
问题不是来自我的代码,而是来自我的 OnePlus One。
将 build.prop 中的指纹更改为“ro.build.fingerprint=oneplus/bacon/A0001:4.4.4/KTU84Q/XNPH38R:user/release-keys”后,它起作用了!
有关更多信息,请访问此reddit 线程。希望这可以帮助 !
推荐阅读
- javascript - 如何在 React JS 中为数组排序程序添加动画
- javascript - 如何使用输入类型复选框选择所有框
- javascript - marklogic在数组上创建实例错误 - javascript
- javascript - Angular 子组件无法识别输入更改
- reactjs - React Typescript 传递道具和数据类型
- python - Python将数据从1 df复制到其他df中的第一个匹配行
- reactjs - 如何处理顺序调度到 redux 并阻塞应用程序的套接字回调?react-redux 批处理?
- awk - 将文件中的每一列与另一个文件中的一列进行比较
- angular - 给出“不知道属性”错误的指令
- javascript - document.getElementById 仅适用于一种产品