Using Android Studio 2.0 emulator with Google Services

非 Y 不嫁゛ 提交于 2020-01-03 11:13:14

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/36509151/using-android-studio-2-0-emulator-with-google-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!