AndroidStudio emulator “won't run unless you update Google Play Services”

前端 未结 11 711
死守一世寂寞
死守一世寂寞 2021-01-04 02:47

I have this problem with my emulator, i\'m using API 5.1.1 and i have the lastest version of Google Play Services from SDK Manager.

AndroidManifest.xml:



        
11条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-04 03:33

    Check in your SDK settings if youve installed google play services: Android Studio--System Settings--Android SDK--SDK Tools:

    Look for:Google Play Services and Google Play Licensing Library and make sure that both their status is:Installed.....if the above checklist is perfect,the next step you ought to perform is:

    Open your build.gradle project level gradle and check that your gradle has:

    classpath 'com.google.gms:google-services:3.1.0'
    

    Then in your App level gradle: Under dependencies:

           dependencies{
         implementation 'com.google.android.gms:play-services-auth:11.8.0'
     and at the end of your gradle file:
    
        repositories {
        mavenCentral()
        apply plugin: 'com.google.gms.google-services'
    }
    

    Next

    Click on the notification error you keep getting in your notification bar of your emulator and sign in with your google account(existing Email Address and password) Then try and run the app again...if you still get the error,click the notification error and try to sign in,,,keep trying until eventually the google playstore app will install and prompt you to update it. This is the simplest process,it requires a little bit of patience but evetually it works. Good Luck

提交回复
热议问题