How to update Google Play Services for Android Studio 2.2 emulators?

后端 未结 8 1683
逝去的感伤
逝去的感伤 2020-11-30 13:48

There are a number of variations of this question, however most are very old, and don\'t really answer the question at all. I\'m NOT asking how to install Play Services, th

8条回答
  •  孤独总比滥情好
    2020-11-30 14:10

    Assuming you're using Android's default AVDs, as opposed to Genymotion, you just have to make sure everything has been updated.

    This is what's working for me. If you are using using the current version of play services, 9.6.1 or higher, make sure of the following:

    1. Your build tools version is 24.0.3 or higher
    2. In the SDK Manager (SDK Platforms tab):
      • If testing Nougat, your emulator is using Google APIs System Image Revision 8 or higher (I'm using "Google APIs Intel x86 Atom_64 System Image")
      • Google APIs is installed and updated (For me, "Google APIs, Android 24" - Revision 1.0.0)
    3. In the SDK Manager (SDK Tools tab):
      • Android SDK Platform Tools is version 24.0.3 or higher
      • Android SDK Tools is version 25.2.2 or higher
      • Google Play Services is installed and using version 33 or higher
      • (Probably optional) Google Repository is installed and version 36 or higher

    After ensuring all of that, and restarting Android Studio (because better safe than sorry), make a new AVD. I mainly use the following settings: - Nougat (API 24) - ABI - x86_64 - Target - Android 7.0 (with Google APIs)

    This is working for me, as I was having the same problem this morning until I updated everything. Good luck :)

提交回复
热议问题