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

前端 未结 11 709
死守一世寂寞
死守一世寂寞 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:07

    Change the SDK in your emulator to v21 or lower. Physical devices are not effected by this issue.

    The reason Android is complaining about an update for Google Play services is related to a known issue in Android emulators for API v22 and up (at this time 23). https://code.google.com/p/android/issues/detail?id=176348

    You should try to use the latest version of Play Services in your build script as users are generally forced to have the latest version of this on their device.

    0 讨论(0)
  • 2021-01-04 03:14

    I downgrade the SDK to 5.0 from 5.1 and it's work.

    0 讨论(0)
  • 2021-01-04 03:20

    Since I haven't seen any working solutions in 2020. There are two ways to fix this:

    1. Easy way is to create a new emulator with PlayStore Enabled. Check before downloading system image for the emulator.

    2. Hard way is to to install Google Play Store on the emulator manually and make the update button work. You can refer to the installation part here.

    After that, the app will automatically update the Google Play Services in a few minutes. That's all.

    Note: If that doesn't work, Go to Chrome -> Search for Google Play Services and open the playStore link of that app and update it there.

    0 讨论(0)
  • 2021-01-04 03:26

    my emulator's Google Play services version is 12.6.85

    so I changed the build.gradle like: implementation 'com.google.android.gms:play-services-maps:12.0.1'

    Notes:

    • to check emulator's Google Play services version: go to Emulator \ Settings \ Apps \ GooglePlay services
    • to see available versions for the build.gradle check https://developers.google.com/android/guides/releases
    0 讨论(0)
  • 2021-01-04 03:27

    Your build.gradle has this line:

    compile 'com.google.android.gms:play-services:+'
    

    This means that android will use the latest version of Google Play Services when ever the app is run. The emulator might not have all the latest updates so the app will not run. Updating Google Play Services will help.

    0 讨论(0)
  • 2021-01-04 03:27

    My issue was resolved after logging in with an google account on the emulator. The 'update' button worked after that

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