更新播放服务后出错“程序类型已经存在:com.google.android.gms.internal.measurement.zzabo" [英] Error after Updating play-services "Program type already present: com.google.android.gms.internal.measurement.zzabo"
问题描述
我将 play-services 依赖项更新到 15.0.0 版,并将 play-services-safetynet 添加到我的 app.gradle.在那之后我总是得到
I updated play-services dependencies to version 15.0.0 and also added play-services-safetynet to my app.gradle. After that i always get
程序类型已经存在:com.google.android.gms.internal.measurement.zzabo消息{kind=ERROR, text=程序类型已经存在:com.google.android.gms.internal.measurement.zzabo,sources=[未知源文件],工具名称=Optional.of(D8)}
Program type already present: com.google.android.gms.internal.measurement.zzabo Message{kind=ERROR, text=Program type already present: com.google.android.gms.internal.measurement.zzabo, sources=[Unknown source file], tool name=Optional.of(D8)}
在构建应用程序时.这是我的 app.build:
when building the app. here is my app.build:
apply plugin: 'com.android.application'
android {
signingConfigs {
}
compileSdkVersion 27
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "XXXXXXX"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "0.0.0.1"
setProperty("archivesBaseName", "XXXXXXX-$versionName")
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/notice.txt'
}
productFlavors {
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:support-v4:27.1.1'
compile 'com.android.support:design:27.1.1'
compile 'com.android.support:appcompat-v7:27.1.1'
compile 'com.android.support:recyclerview-v7:27.1.1'
compile 'com.android.support.constraint:constraint-layout:1.1.0'
compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'
compile 'com.fasterxml.jackson.core:jackson-databind:2.3.2'
compile 'com.koushikdutta.urlimageviewhelper:urlimageviewhelper:1.0.4'
implementation 'com.google.firebase:firebase-core:15.0.0'
implementation 'com.google.firebase:firebase-messaging:15.0.0'
implementation 'com.google.firebase:firebase-appindexing:15.0.0'
implementation 'com.google.android.gms:play-services-location:15.0.0'
implementation 'com.google.android.gms:play-services-safetynet:15.0.0'
compile 'org.kefirsf:kefirbb:1.5'
compile 'org.osmdroid:osmdroid-android:6.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
推荐答案
就我而言,我不得不在项目的 build.gradle 中将 Firebase 从版本 15.0.0 更新到 15.0.2:
In my case, I had to update Firebase from version 15.0.0 to 15.0.2 in project's build.gradle:
dependencies {
...
implementation "com.google.firebase:firebase-messaging:15.0.2"
...
}
然后在应用程序的 build.gradle 中,我不得不将 google-services 从 3.1.1 更新到 3.3.0:
And then in app's build.gradle I had to update google-services from 3.1.1 to 3.3.0:
dependencies {
...
classpath 'com.google.gms:google-services:3.3.0'
...
}
这篇关于更新播放服务后出错“程序类型已经存在:com.google.android.gms.internal.measurement.zzabo"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!