How to install Google Play app in Android Studio emulator?

前端 未结 5 2069
孤独总比滥情好
孤独总比滥情好 2020-12-13 06:16

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 Goo

5条回答
  •  隐瞒了意图╮
    2020-12-13 06:28

    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

提交回复
热议问题