Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/flutter/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Firebase ML套件_Firebase_Flutter_Kotlin_Firebase Machine Learning - Fatal编程技术网

Firebase ML套件

Firebase ML套件,firebase,flutter,kotlin,firebase-machine-learning,Firebase,Flutter,Kotlin,Firebase Machine Learning,尝试使用Firebase ml工具包作为标签,但版本出现以下错误;firebase\u ml\u愿景:^0.9.10 错误 Launching lib\main.dart on sdk gphone x86 arm in debug mode... lib\main.dart FAILURE: Build failed with an exception. * What went wrong: Could not determine the dependencies of task ':

尝试使用Firebase ml工具包作为标签,但版本出现以下错误;firebase\u ml\u愿景:^0.9.10

错误


Launching lib\main.dart on sdk gphone x86 arm in debug mode...
 lib\main.dart

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.
  2]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

  Dependency failing: com.google.android.gms:play-services-vision:20.0.0 -> com.google.android.gms:play-services-vision-co
  mmon@[19.0.2], but play-services-vision-common version was 19.1.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 onto com.google.firebase:firebase-ml-vision@{strictly 24.1.0}
  -- Project 'app' depends on project 'firebase_ml_vision' which depends onto com.google.firebase:firebase-ml-vision@20.0.
  0
  -- Project 'app' depends onto com.google.android.gms:play-services-vision-common@{strictly 19.1.0}
  -- Project 'app' depends onto com.google.firebase:firebase-bom@26.2.0
  -- Project 'app' depends onto com.google.android.gms:play-services-vision-image-label@{strictly 18.0.4}
  -- Project 'app' depends onto com.google.firebase:firebase-bom@{strictly 26.2.0}
  -- Project 'app' depends onto com.google.android.gms:play-services-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

BU�LD FAILED in 13s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

    
   


在github上搜索后,不知何故使用下面的edit,应用程序现在正在运行,但当我尝试使用mlkit时,下面出现了错误

编辑2

   dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation platform('com.google.firebase:firebase-bom:26.0.0')
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.android.support:multidex:1.0.3'
    api 'com.google.firebase:firebase-ml-vision-face-model:20.0.2'
    implementation 'com.google.android.gms:play-services-vision:20.1.1'
    implementation 'com.google.android.gms:play-services-vision-common:19.1.1'
    implementation 'com.google.android.gms:play-services-vision-image-label:18.0.5'
    implementation 'com.google.android.gms:play-services-vision-face-contour-internal:16.0.2'
}
应用程序中出现错误

D/MediaScannerConnection( 8393): Scanned /storage/emulated/0/Android/data/com.example.temp_name/files/Pictures/e235923b-70f9-404a-aa0b-930333cceea96952909717190624838.jpg to null
I/flutter ( 8393): /storage/emulated/0/Android/data/com.example.temp_name/files/Pictures/scaled_e235923b-70f9-404a-aa0b-930333cceea96952909717190624838.jpg
W/DynamiteModule( 8393): Local module descriptor class for com.google.android.gms.vision.dynamite.ica not found.
I/DynamiteModule( 8393): Considering local module com.google.android.gms.vision.dynamite.ica:0 and remote module com.google.android.gms.vision.dynamite.ica:0
W/DynamiteModule( 8393): Local module descriptor class for com.google.android.gms.vision.ica not found.
I/DynamiteModule( 8393): Considering local module com.google.android.gms.vision.ica:0 and remote module com.google.android.gms.vision.ica:0
E/Vision  ( 8393): Error loading optional module com.google.android.gms.vision.ica: com.google.android.gms.dynamite.DynamiteModule$LoadingException: No acceptable module found. Local version is 0 and remote version is 0.
W/LabelerNativeHandle( 8393): Native handle not yet available. Reverting to no-op handle.

由于您包含了
firebase bom:26.2.0
,这决定了您使用的所有firebase SDK的版本。因此,请从build.gradle中的所有其他Firebase SDK依赖项中删除版本号,以消除版本冲突。

在堆栈溢出时,请不要显示文本和代码的图片。将课文复制到问题本身中,并将其格式化,以使其正确无误。您可以使用底部的编辑链接编辑问题以更正此问题。我正要将错误作为代码发送,但收到错误“您的问题中的代码太多”。我不明白对
firebase ml的依赖关系在哪里-vision@20.0. 0
来自as
firebase bom:26.2.0
仅应包括
firebase ml-vision@24.1.0
。您可以检查新编辑吗?谢谢您的回答,但仍然会出现相同的错误。请编辑您的问题以显示新的
build.gradle
和确切的新错误消息(作为文本更可取,顺便说一句,因为发布文本内容的屏幕截图是一种有损的操作)。使用文本进行编辑,但由于错误“代码太多”,无法将其格式化为代码,希望它仍然比图像更有用。