重建项目时出现此错误:
程序类型已经存在:com.google.android.gms.common.api.zzd
消息{种类=错误,文本=程序类型已存在:com.google.android.gms.common.api.zzd,来源= [未知来源文件],工具名称= Optional.of(D8)} >
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.0.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
依赖项
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0-beta01'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
//add library
implementation 'com.android.support:design:28.0.0-beta01'
implementation 'com.firebaseui:firebase-ui-database:4.1.0'
}
apply plugin: 'com.google.gms.google-services'
答案 0 :(得分:1)
在您的项目build.gradle file
中进行更改:
classpath 'com.google.gms:google-services:3.0.0'
收件人:
classpath 'com.google.gms:google-services:4.0.2'