Could not find com.google.gms.google-services:4.3.15:. Required by: project :

huangapple go评论60阅读模式
英文:

> Could not find com.google.gms.google-services:4.3.15:. Required by: project :

问题

面对连接控制台项目进行 Firebase 操作时出现以下错误:

> 未找到 com.google.gms.google-services:4.3.15:。
所需依赖项为:
项目:

一切都正常,但可能是由于新的更新导致了这个问题。

  1. Google 服务文件位于确切的目录中。

  2. 类路径是完美的:
    例如:

    dependencies {
    classpath 'com.android.tools.build:gradle:7.3.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms.google-services:4.3.15'
    }

插件位于完美的位置:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

英文:

Facing this Error while linking console project for firbase operation:
> Could not find com.google.gms.google-services:4.3.15:.
Required by:
project :

Each & everything is fine but maybe a new update let me to this issue.

  1. Google services file is in the exact directory

  2. Classpath is perfect:
    e.g:

    dependencies {
    classpath 'com.android.tools.build:gradle:7.3.0'
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    classpath 'com.google.gms.google-services:4.3.15'
    }

Plugins are in the perfect location:

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.google.gms.google-services'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

答案1

得分: 4

只需将以下部分更改为:

classpath 'com.google.gms:google-services:4.3.15'

英文:

You just have to change the
classpath 'com.google.gms.google-services:4.3.15'

To
classpath 'com.google.gms:google-services:4.3.15'

答案2

得分: 1

根据 https://stackoverflow.com/questions/76498771/errorcould-not-find-com-google-gms-google-services4-3-15 中的解释,似乎有个拼写错误。我已经这样做了,它修复了我的错误。

英文:

As explained in https://stackoverflow.com/questions/76498771/errorcould-not-find-com-google-gms-google-services4-3-15, there seems to be a typo. I have done this and it fixed my error.

huangapple
  • 本文由 发表于 2023年6月19日 03:17:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76502177.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定