【问题标题】:google ml kit instalation package:google_ml_kit_examplegoogle ml kit 安装包:google_ml_kit 示例
【发布时间】:2021-12-13 10:26:38
【问题描述】:

我设法让以下工作 (https://pub.dev/packages/learning_text_recognition)

但我无法安装 google ml kit (https://pub.dev/packages/google_ml_kit)

但我无法安装 C:\projet_flutter\lectureimg2\android\app\build.gradle

defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.example.lectureimg2"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
    }

我也修改了

(https://www.cjoint.com/doc/21_10/KJCh5NwM74v_Capture.PNG)

但包 google ml_kit 示例和未知 https://www.cjoint.com/doc/21_10/KJChYG31KNv_Capture.PNG

好吧,我不知道要从 google 测试什么来测试 mlkit

merci pour tout aide meme partiel

cdl 雷米

【问题讨论】:

标签: flutter google-mlkit


【解决方案1】:

要安装 google mlkit,您必须遵循以下说明:Text Recognition

正如它所说,您必须将其添加到您的应用程序依赖项中

dependencies {
      // ...
      // Use this dependency to bundle the model with your app
      implementation 'com.google.android.gms:play-services-mlkit-text-recognition:17.0.0'
    }
    

它已经完成了!

【讨论】:

    猜你喜欢
    • 2019-04-05
    • 1970-01-01
    • 2021-08-05
    • 2021-01-02
    • 1970-01-01
    • 2019-02-11
    • 2017-11-06
    • 2017-08-27
    • 1970-01-01
    相关资源
    最近更新 更多