【问题标题】:all com.android.support libraries must use the exact same version specification.Found versions 28.0.0, 26.1.0所有 com.android.support 库必须使用完全相同的版本规范。找到版本 28.0.0、26.1.0
【发布时间】:2019-06-09 08:07:14
【问题描述】:

您好,我正在制作一个使用 google 的 OCR API 从图像中提取文本的应用程序。我面临依赖问题的问题。我认为版本存在冲突,但我不明白如何解决。

我尝试在 SDK 管理器中更新 google 存储库,但问题仍未解决。

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    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-vision:17.0.2'
}

【问题讨论】:

    标签: android ocr vision


    【解决方案1】:

    将此行添加到您的依赖项中

    implementation "com.android.support:support-media-compat:28.0.0"
    implementation "com.android.support:support-v4:28.0.0"
    

    【讨论】:

    • 你好@Radesh 谢谢你解决了依赖问题.....但是现在在视觉 API 中的问题是 isOperation() 方法返回 false 可能是什么原因?
    • 如果这个问题解决了,请接受这个答案并添加另一个问题并标记我,如果我知道问题我会回答
    • 这是我第一次使用堆栈溢出,你能告诉我因为你帮助了我,我会给你排名吗
    • 我的答案旁边有一个打勾按钮,你可以点击它
    • 嗨,我在另一篇文章中提到过你,请在那里回复我@Radesh
    猜你喜欢
    • 1970-01-01
    • 2019-03-08
    • 1970-01-01
    • 2017-11-12
    相关资源
    最近更新 更多