程序类型已经存在:com.google.firebase.auth.zza

时间:2019-03-14 02:32:20

标签: android firebase

我真的不知道发生了什么,我已经搜索了所有内容,但没有任何效果。如果有人可以帮助我,我将不胜感激。我更改了所有依赖关系和库以尝试解决它,但没有任何效果。

将项目的API 27更改为28后,会发生此错误。

如果我更改任何依赖项版本,则有可能在我的项目中发生更多错误。

这是build.gradle应用

      android {
        compileSdkVersion 28
        defaultConfig {
            applicationId "com.example.letslocate"
            minSdkVersion 18
            targetSdkVersion 28
            versionCode 1
            versionName "1.0"
            multiDexEnabled true
            testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        //noinspection GradleCompatible
        implementation 'com.android.support:appcompat-v7:28.0.0'
        implementation 'com.android.support:design:28.0.0'
        implementation 'com.android.support.constraint:constraint-layout:1.1.3'
        implementation 'com.google.firebase:firebase-core:16.0.7'
        implementation 'com.google.firebase:firebase-database:16.1.0'
        implementation 'com.google.firebase:firebase-firestore:18.1.0'
        implementation 'com.google.firebase:firebase-storage:16.1.0'
        implementation 'com.google.firebase:firebase-functions:16.2.0'
        implementation 'com.google.firebase:firebase-auth:16.1.0'
        implementation 'com.google.firebase:firebase-messaging:17.4.0'
        implementation 'com.android.support:multidex:1.0.3'
        implementation 'com.google.android.gms:play-services-maps:16.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.ar-android:DrawRouteMaps:1.0.0'

}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

这是build.gradle项目

    buildscript {
    repositories {
        google()
        jcenter()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.3.2'
        classpath 'com.google.gms:google-services:4.2.0'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
        maven { url "https://jitpack.io" }

    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

0 个答案:

没有答案