файл класса для com.google. android .gms.internal.zzeku не найден - PullRequest
0 голосов
/ 08 января 2020

Я хочу внедрить firebase в свое приложение, и у меня возникла эта проблема.

Я понятия не имею, как решить эту проблему.

ошибка: невозможно получить доступ к файлу класса zzeku для com.google. android .gms.internal.zzeku не найден

Вот мой build.gradle ::

    buildscript {
        repositories {
            google()
            jcenter()

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

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

    allprojects {
        repositories {
            google()
            jcenter()
            maven{
                url 'https://maven.google.com'
            }

        }
    }

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

и вот мое приложение build.gradle ::


    apply plugin: 'com.android.application'

    android {
        compileSdkVersion 29
        buildToolsVersion "29.0.2"
        defaultConfig {
            applicationId "com.example.yanitow"
            minSdkVersion 19
            targetSdkVersion 29
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.appcompat:appcompat:1.0.2'
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        implementation 'com.google.firebase:firebase-analytics:17.2.0'
        implementation 'com.google.firebase:firebase-database:11.4.2'
        implementation 'com.google.firebase:firebase-auth:11.4.2'
        implementation 'com.android.support:design:1.0.2'
        implementation 'com.android.support:cardview-v7:1.0.2'
        implementation 'com.rengwuxian.materialedittext:library:2.1.4'
        implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test.ext:junit:1.1.0'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

    }
    apply plugin: 'com.google.gms.google-services'

Я надеюсь, у кого-то есть решение для меня

1 Ответ

1 голос
/ 08 января 2020

Это из-за другой версии firebase.PLease убедитесь, что обновили и использовали все библиотеки с той же версией.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...