无法解析:com.google.firebase:firebase-ml-modeldownloader

在同步我的项目时,我遇到了以下错误:

无法解析:com.google.firebase:firebase-ml-modeldownloader:

我按照Firebase 文档中关于在 Android 上使用自定义 TensorFlow Lite 模型的部分进行了操作

我有哪些选项可以解决这个错误?

我的 Gradle 文件如下:

//firebase    implementation platform('com.google.firebase:firebase-bom:26.4.0')    implementation 'com.google.firebase:firebase-analytics'    //使用多个 Firebase 服务    implementation 'androidx.multidex:multidex:2.0.1'    //firebase-auth    implementation 'com.google.firebase:firebase-auth:20.0.3'    //firebase-fireStore    implementation 'com.google.firebase:firebase-firestore:22.1.2'    //firebase-realTime database    implementation 'com.google.firebase:firebase-database:19.7.0'    //firebase-storage database    implementation 'com.google.firebase:firebase-storage:19.2.2'    // 声明 Firebase ML 模型下载器库的依赖    // 使用 BoM 时,不需要在 Firebase 库依赖中指定版本    implementation 'com.google.firebase:firebase-ml-modeldownloader'    // 同时声明 TensorFlow Lite 库的依赖并指定其版本    implementation 'org.tensorflow:tensorflow-lite:2.3.0'

回答:

原因是我的依赖项:implementation platform('com.google.firebase:firebase-bom:26.8.0') 没有更新,之前是 (26.4.0)。

所以解决方案是更新 Bom-依赖项为: implementation platform('com.google.firebase:firebase-bom:26.8.0')

Related Posts

使用LSTM在Python中预测未来值

这段代码可以预测指定股票的当前日期之前的值,但不能预测…

如何在gensim的word2vec模型中查找双词组的相似性

我有一个word2vec模型,假设我使用的是googl…

dask_xgboost.predict 可以工作但无法显示 – 数据必须是一维的

我试图使用 XGBoost 创建模型。 看起来我成功地…

ML Tuning – Cross Validation in Spark

我在https://spark.apache.org/…

如何在React JS中使用fetch从REST API获取预测

我正在开发一个应用程序,其中Flask REST AP…

如何分析ML.NET中多类分类预测得分数组?

我在ML.NET中创建了一个多类分类项目。该项目可以对…

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注