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

后端 未结 17 1709
北海茫月
北海茫月 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 07:07

    Just make sure all the implementations of firebase you are using have the same version inside the dependencies in build.gradle (app).

    0 讨论(0)
  • 2020-12-03 07:09

    Just Simply Add this two dependency to your pubspec.yml. this works for me.


    firebase_messaging: ^5.0.1 firebase_core: ^0.3.0

    0 讨论(0)
  • 2020-12-03 07:10

    Well, the short answer is: update your library version. Android studio will tell you that there is a new version of it with a message like:

    A newer version of com.google.firebase:firebase-core than 14.0.4 is available: 16.0.4

    Just move to that line, press Alt + Enter and select Change to X.X where X.X is the newer version.

    This way, you can update all your libraries. Repeat the process with all the libraries and you are done.

    0 讨论(0)
  • 2020-12-03 07:13

    I had such a similar error when i was recently upgrading my play service dependency. It seems to occur when you leave out updating the firebase dependencies that correspond to the version of play services you use. I beleive this is the most recent update of these dependencies

    Here is what the two versions of my dependencies were:

    Error version of dependencies

    compile 'com.google.firebase:firebase-appindexing:10.0.1'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.google.android.gms:play-services-places:10.0.1'
    compile 'com.google.android.gms:play-services-location:10.0.1'
    compile 'com.google.firebase:firebase-auth:9.8.0'
    compile 'com.google.firebase:firebase-database:9.8.0'
    compile 'com.firebaseui:firebase-ui-database:1.0.1'
    compile 'com.google.firebase:firebase-storage:9.8.0'
    

    Working version of dependencies ``

    compile 'com.google.firebase:firebase-appindexing:10.0.1'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.google.android.gms:play-services-places:10.0.1'
    compile 'com.google.android.gms:play-services-location:10.0.1'
    compile 'com.google.firebase:firebase-auth:10.0.0'
    compile 'com.google.firebase:firebase-database:10.0.0'
    compile 'com.firebaseui:firebase-ui-database:1.0.1'
    compile 'com.google.firebase:firebase-storage:10.0.0'
    

    `` Google seems to move play service updates along with firebase updates these days. Hopes this saves a few souls out there.

    0 讨论(0)
  • 2020-12-03 07:13

    Same problem occurred with me. By updating library to latest one will resolve this problem.

    After updating don't forget to do Sync project with gradle files.

    0 讨论(0)
提交回复
热议问题