Class file for com.google.android.gms.internal.zzaja not found

后端 未结 17 1829
北海茫月
北海茫月 2020-12-03 06:34

I am using Fragment for the designing of the Firebase simple login registration.

I get error in the OnCreateView() method on initializing



        
17条回答
  •  没有蜡笔的小新
    2020-12-03 06:54

    play services, firebase, gradle plugin latest version combination that worked for me.
    try app module build.gradle

    android {
            compileSdkVersion 27
            buildToolsVersion '27.0.3'
            defaultConfig {
                applicationId "my package name"
                minSdkVersion 16
                targetSdkVersion 27
                versionCode 1
                versionName "1.0"
                multiDexEnabled true
                publishNonDefault true
                testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
            } }
    
        dependencies {
            implementation 'com.google.android.gms:play-services-location:15.0.1'
            implementation 'com.google.android.gms:play-services-maps:15.0.1'
            implementation 'com.google.android.gms:play-services-vision:15.0.2'
            implementation 'com.google.android.gms:play-services-analytics:16.0.1'
            implementation 'com.google.firebase:firebase-core:16.0.1'
            implementation 'com.google.firebase:firebase-iid:17.0.0'
            implementation 'com.google.firebase:firebase-messaging:17.3.0'
            implementation 'com.google.firebase:firebase-crash:16.0.1'
        }
    
        apply plugin: 'com.google.gms.google-services'
    

    And project level build.gradle like this

    buildscript {
        repositories {
    
            maven { url 'https://maven.google.com' }
            google()
            jcenter()
    
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:3.1.4'
            classpath 'com.google.gms:google-services:4.1.0'
        }
    }
    

提交回复
热议问题