我将播放服务依赖项更新到15.0.0版,并在我的app.gradle中添加了play-services-safetynet.在那之后,我总是得到
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:
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:
dependencIEs { ... implementation "com.Google.firebase:firebase-messaging:15.0.2" ...}
然后在app的build.gradle中我不得不将Google-services从3.1.1更新到3.3.0:
dependencIEs { ... classpath 'com.Google.gms:Google-services:3.3.0' ...}
总结 以上是内存溢出为你收集整理的更新播放服务后出现错误“程序类型已存在:com.google.android.gms.internal.measurement.zzabo”全部内容,希望文章能够帮你解决更新播放服务后出现错误“程序类型已存在:com.google.android.gms.internal.measurement.zzabo”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)