英文:
> Could not find com.google.gms.google-services:4.3.15:. Required by: project :
问题
面对连接控制台项目进行 Firebase 操作时出现以下错误:
> 未找到 com.google.gms.google-services:4.3.15:。
所需依赖项为:
项目:
一切都正常,但可能是由于新的更新导致了这个问题。
-
Google 服务文件位于确切的目录中。
-
类路径是完美的:
例如: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.
-
Google services file is in the exact directory
-
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论