Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

remove or update Google play service on emulator

i programmed an android app which uses the google maps api v2. i want to test it on the emulator, but to show the map it has a little bit problems. i googled and found the articel, that i have to install to packages (vending.apk, android.gms.apk). i downloaded the packages and installed it. what i did not know is, the installed android.gms.apk is not up to date. when i run the app on the emulator, it shows an button an a message: ...update Google Play services. And now i found the newest version of the .gms.apk. but i am not able to remove or update the google play services on the emulator, because i became the following message from the cmd:

enter image description here

is there a solution for these problem? thx in advance

like image 644
KenMasters Avatar asked Sep 18 '25 01:09

KenMasters


2 Answers

Installing google service packages; gms and vending

  • Be sure that emulator started
  • Copy com.google.android.gms-19032013.apk and com.google.android.vending-19032013.apk files to < bundle root >\sdk\platform-tools from my blog.
  • Open command prompt and go to < bundel root >\sdk\platform-tools
  • then run command adb install com.google.android.gms-19032013.apk
  • then run command adb install com.android.vending-19032013.apk if it says already exits then run commands -adb uninstall com.android.vending -adb uninstall com.google.android.gms

I had similar problems so I prepared step by step tutorial to show how you can use google map android v2 on emulator(android 4.2.2) have a look at to my blog: http://umut.tekguc.info/en/content/google-android-map-v2-step-step

like image 81
Umut Tekgüç Avatar answered Sep 20 '25 15:09

Umut Tekgüç


adb uninstall cannot work for system apps is what I am finding out. And Vending and gms are system apps. Therefore adb uninstall com.android.vending causes a failure even if I su. So is there no resolution to this problem?

I can't install it even if I use -r because the certificates are different.

like image 24
Nirav Avatar answered Sep 20 '25 15:09

Nirav