java - 由于缺少谷歌应用 ID,构建失败
问题描述
我已经看到这个问题正在发生,我尝试降级 Google App Id,甚至尝试升级它,但没有任何效果。我什至检查了更新,但仍然没有运气。当我实现它时,我遇到了这个错误,它说“缺少 Google 应用程序 ID”。有人可以帮忙吗?
这是来自 build.gradle(WeightTracker)
dependencies {
classpath "com.android.tools.build:gradle:4.0.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.google.gms:google-services:4.2.0'
}
这是来自 build.gradle(app)
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-storage'
implementation platform('com.google.firebase:firebase-bom:25.4.1')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
这是我不断收到的错误:
Missing Google App Id. Please follow instructions on https://firebase.google.com/ to get a valid config file that contains a Google App Id
解决方案
推荐阅读
- java - Android 在 Cordova 插件中使用自定义依赖项?
- java - 在任何地方解析文本的 XML 文档
- reactjs - ReactJS componentDidUpdate() prevState 等于 currentState
- oracle - 仅使用第一列的多列索引
- sockets - ZeroMQ 套接字在 goroutine 中不接收数据
- matlab - 从两幅图像的特征提取中获取视差图
- angularjs - 仅在 Google Chrome 中,Angular JS 中代码执行的周期性奇怪行为
- r - R中带有ranger和pdp的平行部分依赖图
- python - 我如何在 django 重定向中使用 kwargs,我有一个错误
- servicestack - CreateIndex API 是否支持多列索引?