How to use GCM for intel x86 emulator

I am using Android x86 emulator for Android for Android.

but when I use google croud messaging API, an error occurred.

java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf

if the emulator emulator using google apis is an error. But very slowly ....

I searched the same situation and found for the Google Maps API.

How to create avd with google api for Intel x86 atom image?

http://38911bytes.blogspot.de/2012/03/how-to-use-google-maps-api-in-android.html

but in this article there is only a problem with Google Maps, not for the GCM API.

there is a solution?

+8
android android-emulator
source share
3 answers

I would recommend you use AndroVM .

Androvm
(source: androvm.org )

These are actually x86 images of the Android Android VirtualBox virtual machines (with the Google API), where you can deploy & test your application efficiently. In my opinion, it is about as fast as a real Android device, and makes me very productive in developing Android applications.

To set up AndroVM, you can check the official documentation here, which I think is understandable.

And you can get virtual machine images from the download page, and don't forget to download using gapps & Houdini .

I just checked my installation and found GoogleServicesFramework.apk in / system / app. So that should satisfy your needs.

+5
source share

Now you can use Genymotion, AndroVM is deprecated.

You can run the emulator from Eclipse using the plug-in and Android Studio. I guess.

Regarding the question, I had this problem ... follow the first answer (image with Google applications), then create a google account and open the Play Store so it can be updated because GCM needs Google Play Services.

What is it.

+1
source share

This happens when using the wrong emulator.

the default emulator is not configured to run the gcm API, you are using the emulator with the Google API.

You need to create a new emulator by selecting the Google xx API level, and start the project on this emulator, hope that it will work correctly.

0
source share

All Articles