java生成失败,因为缺少google应用程序Id
我看到这个问题不断出现,我曾尝试降低谷歌应用程序Id的级别,甚至尝试升级,但都没有效果。我甚至检查了更新,但仍然没有运气。我有一个错误,当我实现它时,它说“缺少谷歌应用程序Id”。有人能帮忙吗
这是从建立。格雷德尔(重量跟踪器)
dependencies {
classpath "com.安卓.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'
}
这是从建立。格雷德尔(应用程序)
apply plugin: 'com.安卓.application'
apply plugin: 'com.google.gms.google-services'
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation '安卓x.appcompat:appcompat:1.1.0'
implementation '安卓x.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'
安卓TestImplementation '安卓x.test.ext:junit:1.1.1'
安卓TestImplementation '安卓x.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
共 (0) 个答案