How to install Google Play app in Android Studio emulator?
I am completely new to using Android Studio and I am trying to install the Google Play app on the emulator. I have installed the Google Repository
and Google Play Services
as well as a Google APIs x86 Atom System Image
from the SDK manager and I am able to set up Google Play Services for my sample application.
I would now like to install the Google Play application on my emulator. How can this be done ? Any suggestions or a solution itself would be most appreciated. Also, thank you very much for your time.
Starting with Android Studio 3.0 Canary 1, you have now some options of devices that come with the Play Store app built-in(Nexus 5X and Nexus 5 on image below).
Download Google apps (GoogleLoginService.apk , GoogleServicesFramework.apk , Phonesky.apk) from http://wiki.rootzwiki.com/Google_Apps#Universal_Packages_2
Start your emulator:
emulator -avd VM_NAME_HERE -partition-size 500 -no-audio -no-boot-anim
Then use the following commands:
Remount in rw mode
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
Allow writing to app directory on system partition
adb shell chmod 777 /system/app
Install following apk
adb push GoogleLoginService.apk /system/app/.
adb push GoogleServicesFramework.apk /system/app/.
adb push Phonesky.apk /system/app/. # Vending.apk in older versions
adb shell rm /system/app/SdkSetup*
Refer: to this SO Post
Start your emulator:
emulator -avd VM_NAME_HERE -partition-size 500 -no-audio -no-boot-anim
Then use the following commands:
# Remount in rw mode
adb shell mount -o remount,rw -t yaffs2 /dev/block/mtdblock0 /system
# Allow writing to app directory on system partition
adb shell chmod 777 /system/app
# Install following apk
adb push GoogleLoginService.apk /system/app/.
adb push GoogleServicesFramework.apk /system/app/.
adb push Phonesky.apk /system/app/. # Vending.apk in older versions
adb shell rm /system/app/SdkSetup*
链接地址: http://www.djcxy.com/p/87152.html