Тип программы уже представлен: com.google. android .gms.common.zza - PullRequest
1 голос
/ 17 февраля 2020

Я пытаюсь реализовать посредничество в моем исходном коде, но получаю следующую ошибку:

Тип программы уже присутствует: com.google. android .gms.common.zza

apply plugin: 'com.android.application'

android {
    android.defaultConfig.vectorDrawables.setUseSupportLibrary(true)
    dexOptions {
        javaMaxHeapSize "4g"
        preDexLibraries false
    }
    compileSdkVersion 28
    buildToolsVersion '28.0.3'
    defaultConfig {

        minSdkVersion 17
        targetSdkVersion 28
        renderscriptTargetApi 19
        renderscriptSupportModeEnabled true
        versionCode 13
        versionName "2.1"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled true
        vectorDrawables {
            useSupportLibrary = true
        }
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('androidx.test.espresso:espresso-core:3.2.0', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })







    implementation 'androidx.appcompat:appcompat:1.0.0'
    implementation 'com.google.android.material:material:1.0.0'
    implementation 'androidx.vectordrawable:vectordrawable-animated:1.0.0'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'androidx.media:media:1.0.0'
    implementation 'androidx.vectordrawable:vectordrawable:1.0.0'
    implementation 'de.hdodenhof:circleimageview:2.1.0'
    implementation 'androidx.cardview:cardview:1.0.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.vectordrawable:vectordrawable:1.0.0'
    implementation 'devlight.io:navigationtabbar:1.2.5'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    implementation 'com.leo.simplearcloader:simplearcloader:1.0.+'
    implementation 'com.google.code.gson:gson:2.6.2'
    implementation 'com.squareup.retrofit2:retrofit:2.0.2'
    implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
    implementation 'com.squareup.okhttp3:okhttp:3.3.1'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.0.2'
    implementation 'com.jakewharton.timber:timber:3.1.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.2.0'
    implementation 'com.google.android.gms:play-services-auth:15.0.0'
    implementation 'com.google.firebase:firebase-core:15.0.2'
    implementation 'com.google.firebase:firebase-messaging:15.0.2'
    implementation 'com.google.firebase:firebase-ads:15.0.0'
    implementation 'com.github.vivchar:ViewPagerIndicator:1.1.0'
    implementation 'com.anjlab.android.iab.v3:library:1.0.44'
    implementation 'com.github.GrenderG:Toasty:1.3.0'

    implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
    implementation 'com.miguelcatalan:materialsearchview:1.4.0'
    implementation 'com.google.android.exoplayer:exoplayer:r2.5.2'
    implementation 'androidx.multidex:multidex:2.0.0'
    implementation 'com.facebook.android:audience-network-sdk:5.+'
    implementation 'com.google.android.ads.consent:consent-library:1.0.3'
    implementation 'com.github.bhargavms:DotLoader:1.1.1'
    implementation 'com.sothree.slidinguppanel:library:3.4.0'
    implementation 'com.github.chrisbanes:PhotoView:1.2.5'
    implementation 'com.github.TutorialsAndroid:progressx:v2.0'
    implementation 'com.orhanobut:hawk:2.0.1'
    implementation 'com.github.Gavras:GIFView:v1.2'
    implementation 'com.facebook.rebound:rebound:0.3.8'
    implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.0'
    implementation 'jp.co.cyberagent.android:gpuimage:2.0.3'
    implementation "com.leinardi.android:speed-dial:2.0.1"
    implementation 'com.jackandphantom.android:blurimage:1.2.0'
    implementation 'com.google.ads.mediation:adcolony:4.1.2.0'


    testImplementation 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'

Я на самом деле новичок, и я следую инструкциям в документации Google для разработчиков. Я перенес свой проект в android X без ошибок.

Кто-нибудь может помочь?

...