微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

播放服务视觉库似乎没有下载

如何解决播放服务视觉库似乎没有下载

我想为我的 android 应用创建一个 qr 阅读器,但 API 似乎没有下载。 我试图重新下载 google play 服务应用程序以及清除缓存,但这似乎没有帮助,但无论如何不应该有更好的方法吗?我们不能要求我们的客户乱用 google play 服务。我正在使用华为荣耀 8,但也在三星上尝试过,但仍然无法正常工作。

格兰德:

implementation 'com.google.android.gms:play-services-vision:20.1.3'

清单

<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.example.example"
android:installLocation="auto">

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


<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher_foreground"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"
    tools:ignore="GoogleAppIndexingWarning">

    <Meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />
    <Meta-data
        android:name="com.google.android.gms.vision.DEPENDENCIES"
        android:value="barcode" />




    <activity android:name="com.mobileintelligencese.healthshake.MainActivity">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>


</application>

我只是得到这个日志

W/DynamiteModule: Local module descriptor class for com.google.android.gms.vision.dynamite.barcode not found.
I/DynamiteModule: Considering local module com.google.android.gms.vision.dynamite.barcode:0 and remote module com.google.android.gms.vision.dynamite.barcode:0
 I/DynamiteModule: Considering local module com.google.android.gms.vision.barcode:0 and remote module com.google.android.gms.vision.barcode:1
I/DynamiteModule: Selected remote version of com.google.android.gms.vision.barcode,version >= 1
W/System: ClassLoader referenced unkNown path: 
 W/ResourceType: ResTable_typespec entry count inconsistent: given 67,prevIoUsly 69
 W/ResourceType: ResTable_typespec entry count inconsistent: given 5462,prevIoUsly 5463
I/DynamiteLoaderV2Impl: [71] VisionBarcode.optional 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。