所有com.android.support库都必须使用完全相同的版本规范。找到的版本28.0.0,26.1.0

时间:2019-06-09 08:07:14

标签: android ocr vision

您好,我正在制作一个使用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'
}

1 个答案:

答案 0 :(得分:0)

将此行添加到您的依赖项

implementation "com.android.support:support-media-compat:28.0.0"
implementation "com.android.support:support-v4:28.0.0"
相关问题