Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Android Studio 2.0 emulator with Google Services

According to an article in the Android Developers Blog, regarding the release of Android Studio 2.0:

Android Emulator - The new emulator runs ~3x faster than Android’s previous emulator, and with ADB enhancements you can now push apps and data 10x faster to the emulator than to a physical device. Like a physical device, the official Android emulator also includes Google Play Services built-in, so you can test out more API functionality. Finally, the new emulator has rich new features to manage calls, battery, network, GPS, and more.

Great! That's exactly what we need. Later on the article they explain how we can get Google Play Services in our emulators.

Trying out the new emulator is as easy as updating your SDK Tools to 25.1.1 or higher, create a fresh Android Virtual Device using one of the recommended x86 system images and you are ready to go. Learn more about the Android Emulator by checking out the documentation.

I have SDK Tools 25.1.1 installed. I have a fresh Android Virtual Device running x86 system image.

No Google play services :-(

What am I missing?

like image 799
GabrielOshiro Avatar asked Apr 08 '16 20:04

GabrielOshiro


1 Answers

When you create your virtual device, be sure to choose the one "with Google APIs". If that isn't an option, you will have to use the Android SDK manager to download the Google APIs for each API level you want to work with.

like image 199
Doug Stevenson Avatar answered Oct 27 '22 01:10

Doug Stevenson