【问题标题】:Device Support Removed- Google play console设备支持已移除 - Google Play 控制台
【发布时间】:2019-03-30 09:22:53
【问题描述】:

我在尝试将新 APK 上传/更新到 Google Play 控制台时收到错误 notification。 就像我的较新的APK 版本支持的设备比我的旧APK 少。我在清单文件中添加了两件事。

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

我该如何解决?

【问题讨论】:

  • 添加这两行时,会禁用没有摄像头且没有自动对焦功能的设备。

标签: android google-play-console


【解决方案1】:

由于您添加了uses-feature,没有摄像头和自动对焦的设备会被过滤掉。某些 Android 设备可能没有摄像头,或者不支持自动对焦。

如果您的应用不需要相机,而您只是将其添加为附加选项。您可以使用android:required="false"uses-feature

<uses-feature android:name="android.hardware.camera"  android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus"  android:required="false"/>

确保仅在设备具有实际摄像头时才显示摄像头选项。否则可能会导致没有摄像头的设备崩溃。

您可以使用以下代码检查设备是否有摄像头:

/** Check if this device has a camera */
private boolean checkCameraHardware(Context context) {
    if (context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA)){
        // this device has a camera
        return true;
    } else {
        // no camera on this device
        return false;
    }
}

【讨论】:

    【解决方案2】:

    当您添加这两行时,您会禁用没有摄像头且没有自动对焦的设备。 解决此问题的唯一方法是停止添加。

    【讨论】:

      【解决方案3】:

      这个警告是因为

      1) Google Play 使用您的应用清单中声明的​​&lt;uses-feature&gt; 元素从不满足其硬件和软件功能要求的设备中过滤您的应用。

      2) 以前受支持的旧设备将无法再从 Google Play 商店下载您应用的最新版本

      【讨论】:

        【解决方案4】:

        如果您在 Play 商店评论页面上进一步向下滚动,您应该会看到该应用不再受支持的原因明细,包括哪些设备以及您当前的安装数量受到影响的信息。

        (在我们的例子中,这几乎完全是因为升级了 SDK 版本。)

        【讨论】:

          猜你喜欢
          • 2018-04-20
          • 2013-05-05
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-11-03
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多