firebase_mlkit_language icon indicating copy to clipboard operation
firebase_mlkit_language copied to clipboard

firebase_mlkit_language clashes with firebase_ml_vision

Open josedihego opened this issue 5 years ago • 4 comments

firebase_core: ^0.4.0+9 firebase_ml_vision: ^0.9.9 flutter_tts: ^1.3.0 camera: ^0.5.8+11 path_provider: ^1.6.24

#problem firebase_mlkit_language: ^1.1.3


classpath 'com.android.tools.build:gradle:3.5.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.3.4'


dependencies{ api 'com.google.firebase:firebase-ml-vision-image-label-model:17.0.2'

}

ERROR_______ FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[19.0. 0]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.firebase:firebase-ml-vision:20.0.0 -> com.google.firebase:firebase-ml-common@[19.0.0], bu t firebase-ml-common version was 22.0.0.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'app' depends on project 'firebase_ml_vision' which depends onto com.google.firebase:[email protected]. 0 -- Project 'app' depends onto com.google.firebase:firebase-ml-common@{strictly 22.0.0} -- Project 'app' depends onto com.google.firebase:firebase-ml-vision@{strictly 20.0.0}

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https:// github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = true }" to your bu ild.gradle file.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 17s Exception: Gradle task assembleDebug failed with exit code 1

josedihego avatar Nov 09 '20 20:11 josedihego

I have tried this : googleServices {disableVersionCheck = true} and this: classpath 'com.google.gms:google-services:4.1.0' and nothing has worked. This is a project where I need both firebase_mlkit_language clashes and firebase_ml_vision, without one of them I cannot progress, this is consuming so much time, it has been a battle of versions, but until now nothing has worked. Thank you for any help

josedihego avatar Nov 09 '20 20:11 josedihego

No support , No help!! Is there any package offer ml language ?

niypoo avatar Dec 08 '20 16:12 niypoo

@josedihego hi. Have you solved this your issue?

assylman avatar Jan 28 '21 17:01 assylman

@nurassylive, unfortunately no. In the end I had to choose just one of these packages, because I hadn't figure out how to use them together.

josedihego avatar Feb 01 '21 19:02 josedihego