Google 上的应用与设备华为 Y560-L01 不兼容

App incompatible with device Huawei Y560-L01 on Google Play

我已将应用程序上传到 Google Play。它的targetSdkVersion是23,minSdkVersion是12。

AndroidManifest.xml 包含以下几行:

<uses-permission android:name="android.permission.BLUETOOTH"/>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<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.WAKE_LOCK"/>
<uses-feature android:name="android.hardware.usb.host"/>
<uses-sdk tools:overrideLibrary="com.google.firebase.firebase_core, com.google.android.gms.measurement, com.google.android.gms.measurement.impl, com.google.firebase.iid, com.google.firebase, com.google.android.gms.tasks, com.google.android.gms"/>

问题是 Android 版本 5.1.1 的设备 Huawei Y560-L01 Google Play 说该应用程序与此设备不兼容。

你能告诉我,我应该怎么做才能让这个应用程序能够从 Google Play 安装到这个设备上?

那是因为您的华为Y560-L01没有使用USB主机功能。 引用文档:

Because not all Android-powered devices are guaranteed to support the USB host APIs, include a element that declares that your application uses the android.hardware.usb.host feature.

如果您想在您的设备上安装它,您必须将其设置为不需要:

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