Cannot resolve symbol 'Auth' for google integration in android studio

前端 未结 8 1367
执念已碎
执念已碎 2021-01-01 12:01

i am new in androidstudio. i have done integration of google in eclipse but am having issues in studio. i am following step by step from this site : https://developers.googl

相关标签:
8条回答
  • 2021-01-01 12:22

    With the latest version (2.2.2) what I had to do in order to fix this issue was to add the line below as a dependency into my app/build.gradle file

    compile 'com.google.android.gms:play-services-auth:9.8.0'
    

    Hope it helps.

    0 讨论(0)
  • 2021-01-01 12:23
    1. open your ANDROID STUDIO
    2. open TOOLS
    3. select FIREBASE
    4. select the authentication
    5. and click on the "Add firebase authentication to your app" button.

    done!

    (note: make sure you are connected to the internet.)

    0 讨论(0)
  • 2021-01-01 12:26

    I had the same issue, add compile 'com.google.android.gms:play-services-auth:10.0.1 (your project's latest version) in your app level gradle file.

    0 讨论(0)
  • 2021-01-01 12:27
    • Put apply plugin: 'com.google.gms.google-services' beneath apply plugin: 'com.android.application'.

    • Add compile 'com.google.android.gms:play-services-auth:8.3.0' inside dependencies block. This will add related dependencies to your project.

    0 讨论(0)
  • 2021-01-01 12:35

    I faced this issue. I solved it by adding this line in app level gradle file:

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

    (at the bottom of the file (important))

    and this line in app level dependencies section,

    compile 'com.google.android.gms:play-services-auth:11.0.4'
    

    (latest version, at the time when I am writing this answer)

    Here's the link to the documentation.

    0 讨论(0)
  • 2021-01-01 12:36

    Add the dependencies for Firebase Authentication and Google Sign-In to your app-level build.gradle file:

    compile 'com.google.firebase:firebase-auth:10.0.1'
    compile 'com.google.android.gms:play-services-auth:10.0.1'
    
    0 讨论(0)
提交回复
热议问题