You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android设备MLKit Document Scanner扫描失败:Google Play服务版本问题

解决MLKit文档扫描报错:feature not available in the current version of the google play services

针对你遇到的这个报错,即使已经确认API等级、minSdkVersion和RAM符合要求,以下是几个可行的排查和解决步骤:

  • 检查并更新Google Play Services版本
    MLKit文档扫描功能对Google Play Services的版本有明确要求,旧版本的Play Services不支持该功能。你可以通过以下步骤检查版本:

    1. 打开设备的「设置」→「应用」→找到「Google Play Services」
    2. 查看应用详情里的版本号
      确保版本不低于MLKit文档扫描要求的最低版本(通常需要≥20.45.10,建议直接更新到最新稳定版)。更新方式:打开Google Play商店,搜索「Google Play Services」,点击「更新」按钮。
  • 确认MLKit依赖版本兼容性
    项目中引入的MLKit文档扫描依赖版本需要和设备上的Play Services版本匹配。建议使用最新稳定版的依赖,比如在Module级别的build.gradle中确保依赖如下(以最新版为例):

    dependencies {
        implementation 'com.google.mlkit:document-scanner:16.1.0'
    }
    

    避免使用过于老旧的MLKit依赖,否则即使Play Services更新了,也可能出现兼容性问题。

  • 清除Google Play Services缓存与数据
    缓存损坏可能导致功能识别异常,尝试清除缓存和数据:

    1. 「设置」→「应用」→「Google Play Services」→「存储」
    2. 点击「清除缓存」,再点击「清除数据」
      操作后重启设备,重新测试扫描功能。
  • 验证页数限制配置是否合法
    确认你设置的页数限制在MLKit文档扫描支持的范围内(当前版本支持1-10页的扫描),如果设置的页数超出这个范围,也可能触发功能不可用的报错。

内容的提问来源于stack exchange,提问作者Hasini Athukorale

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.24 12:52:11