Android Studio-程序类型已存在:com.google.android.gms.internal.measurement.zzwp

Android Studio-程序类型已存在:com.google.android.gms.internal.measurement.zzwp,第1张

概述昨天,我的应用程序工作正常.今天,我不知道为什么,在重新打开AndroidStudio后,应用程序不再编译.显示的错误是Programtypealreadypresent:com.google.android.gms.internal.measurement.zzwpMessage{kind=ERROR,text=Programtypealreadypresent:com.google.android.g

昨天,我的应用程序工作正常.

今天,我不知道为什么,在重新打开Android Studio后,应用程序不再编译.

显示的错误是

Program type already present: com.Google.androID.gms.internal.measurement.zzwpMessage{kind=ERROR, text=Program type already present: com.Google.androID.gms.internal.measurement.zzwp, sources=[UnkNown source file], tool name=Optional.of(D8)}

我真的不知道发生了什么,我搜索了一切,没有任何效果.
如果有人可以帮助我,我真的很感激.
我更改了所有依赖项和库以尝试解决它,但没有任何效果.

这是build.gradle项目

buildscript {    repositorIEs {        Google()        jcenter()    }    dependencIEs {        classpath 'com.androID.tools.build:gradle:3.1.1'        classpath 'com.Google.gms:Google-services:3.2.1'        // NOTE: Do not place your application dependencIEs here; they belong        // in the indivIDual module build.gradle files    }}allprojects {    repositorIEs {        maven { url 'https://jitpack.io' }        Google()        jcenter()    }}task clean(type: Delete) {    delete rootProject.buildDir}

这是我的build.gradle模块:app

apply plugin: 'com.androID.application'androID {    compileSdkVersion 27    defaultConfig {        applicationID "com.doctordirectory"        minSdkVersion 21        targetSdkVersion 27        versionCode 1        versionname "1.0"        testInstrumentationRunner "androID.support.test.runner.AndroIDJUnitRunner"        multIDexEnabled true    }    buildTypes {        release {            MinifyEnabled false            proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro'        }    }}repositorIEs {    maven { url "https://jitpack.io" }}dependencIEs {    implementation filetree(dir: 'libs')    implementation 'com.androID.support:appcompat-v7:27.1.0'    implementation 'com.androID.support.constraint:constraint-layout:1.1.0'    implementation 'com.github.PhilJay:MPAndroIDChart:v3.0.3'    implementation ('com.facebook.androID:audIEnce-network-sdk:4.28.0',{        exclude group: 'com.Google.androID.gms'    })    implementation 'com.facebook.androID:facebook-login:4.32.0'    implementation 'com.androID.support:multIDex:1.0.3'    implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'    implementation 'com.androID.support:support-v4:27.1.0'    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'    implementation 'com.Google.firebase:firebase-core:15.0.0'    implementation 'com.Google.firebase:firebase-database:15.0.0'    implementation 'com.Google.firebase:firebase-crash:15.0.0'    implementation 'com.Google.firebase:firebase-auth:15.0.0'    implementation 'com.Google.firebase:firebase-storage:15.0.0'    implementation 'com.firebaseui:firebase-ui-database:3.3.1'    implementation 'com.Google.androID.gms:play-services-auth:15.0.0'    implementation 'com.Google.androID.gms:play-services-plus:15.0.0'    implementation 'com.Google.androID.gms:play-services-location:15.0.0'    implementation 'com.androID.support:cardvIEw-v7:27.1.0'    implementation 'com.androID.support:recyclervIEw-v7:27.1.0'    implementation 'com.squareup.picasso:picasso:2.5.2'    implementation 'com.squareup.retrofit2:retrofit:2.3.0'    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'    implementation 'com.stepstone.apprating:app-rating:2.2.0'    implementation 'com.androID.support:design:27.1.0'    implementation 'com.androID.support:design:27.1.0'    implementation 'com.github.lguipeng:BubbleVIEw:1.0.1'    implementation 'uk.co.chrisjenx:calligraphy:2.3.0'    implementation 'com.miguelcatalan:materialsearchvIEw:1.4.0'    implementation 'com.github.MdFarhanRaja:SearchableSpinner:1.9'    implementation 'com.github.sillebille:dynamic-calendar:1.0.1'    implementation 'com.Google.API-clIEnt:Google-API-clIEnt:1.22.0'    implementation 'com.Google.API-clIEnt:Google-API-clIEnt-androID:1.22.0'    implementation 'com.Google.APIs:Google-API-services-people:v1-rev4-1.22.0'}apply plugin: 'com.Google.gms.Google-services'

解决方法:

在将firebase依赖项更新为最新版本之后解决了此问题,例如com.Google.firebase:firebase-core:15.0.0到com.Google.firebase:firebase-core:15.0.2 Get Latest List from here

以下列表中进行的所有其他更改

  dependencIEs {        implementation filetree(dir: 'libs', include: ['*.jar'])        implementation 'com.androID.support:appcompat-v7:27.1.1'        implementation 'com.androID.support:customtabs:27.1.1'        implementation 'com.androID.support.constraint:constraint-layout:1.1.0'        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'        implementation 'com.github.PhilJay:MPAndroIDChart:v3.0.3'        implementation 'com.facebook.androID:audIEnce-network-sdk:4.28.0'        implementation 'com.facebook.androID:facebook-login:4.32.0'        implementation 'com.androID.support:multIDex:1.0.3'        implementation 'com.readystatesoftware.sqliteasset:sqliteassethelper:2.0.1'        implementation 'com.androID.support:support-v4:27.1.1'        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'        implementation 'com.Google.firebase:firebase-core:15.0.2'        implementation 'com.Google.firebase:firebase-database:15.0.0'        implementation 'com.Google.firebase:firebase-crash:15.0.2'        implementation 'com.Google.firebase:firebase-auth:15.0.0'        implementation 'com.Google.firebase:firebase-storage:15.0.2'        implementation 'com.firebaseui:firebase-ui-database:3.3.1'        implementation 'com.Google.androID.gms:play-services-auth:15.0.0'        implementation 'com.Google.androID.gms:play-services-plus:15.0.0'        implementation 'com.Google.androID.gms:play-services-location:15.0.0'        implementation 'com.androID.support:cardvIEw-v7:27.1.1'        implementation 'com.androID.support:recyclervIEw-v7:27.1.1'        implementation 'com.squareup.picasso:picasso:2.5.2'        implementation 'com.squareup.retrofit2:retrofit:2.3.0'        implementation 'com.squareup.retrofit2:converter-gson:2.3.0'        implementation 'com.stepstone.apprating:app-rating:2.2.0'        implementation 'com.androID.support:design:27.1.1'        implementation 'com.github.lguipeng:BubbleVIEw:1.0.1'        implementation 'uk.co.chrisjenx:calligraphy:2.3.0'        implementation 'com.miguelcatalan:materialsearchvIEw:1.4.0'        implementation 'com.github.MdFarhanRaja:SearchableSpinner:1.9'        implementation 'com.github.sillebille:dynamic-calendar:1.0.1'        implementation 'com.Google.API-clIEnt:Google-API-clIEnt:1.22.0'        implementation 'com.Google.API-clIEnt:Google-API-clIEnt-androID:1.22.0'        implementation 'com.Google.APIs:Google-API-services-people:v1-rev4-1.22.0'    }

2)在顶级build.gradle文件更新中
 classpath’com.Google.gms:Google-services:3.1.1 to classpath’com.Google.gms:Google-services:3.2.1

总结

以上是内存溢出为你收集整理的Android Studio-程序类型已存在:com.google.android.gms.internal.measurement.zzwp全部内容,希望文章能够帮你解决Android Studio-程序类型已存在:com.google.android.gms.internal.measurement.zzwp所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1103065.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存