{"action":"closed","issue":{"url":"https://api.github.com/repos/inloop/easygcm/issues/28","labels_url":"https://api.github.com/repos/inloop/easygcm/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/inloop/easygcm/issues/28/comments","events_url":"https://api.github.com/repos/inloop/easygcm/issues/28/events","html_url":"https://github.com/inloop/easygcm/issues/28","id":68702306,"number":28,"title":"Crash on Genymotion emulator with GApps","user":{"login":"dsdebastiani","id":5443979,"avatar_url":"https://avatars.githubusercontent.com/u/5443979?v=3","gravatar_id":"","url":"https://api.github.com/users/dsdebastiani","html_url":"https://github.com/dsdebastiani","followers_url":"https://api.github.com/users/dsdebastiani/followers","following_url":"https://api.github.com/users/dsdebastiani/following{/other_user}","gists_url":"https://api.github.com/users/dsdebastiani/gists{/gist_id}","starred_url":"https://api.github.com/users/dsdebastiani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsdebastiani/subscriptions","organizations_url":"https://api.github.com/users/dsdebastiani/orgs","repos_url":"https://api.github.com/users/dsdebastiani/repos","events_url":"https://api.github.com/users/dsdebastiani/events{/privacy}","received_events_url":"https://api.github.com/users/dsdebastiani/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-15T14:48:38Z","updated_at":"2015-05-10T11:03:35Z","closed_at":"2015-05-10T11:03:35Z","body":"I'm trying to run my application in the Geenymotion emulator. I have installed the Google Play Services (part of Google Apps)\r\n\r\nThe problem is, when the app runs, the class *GcmHelper.java* trhow an exception:\r\n```\r\njava.lang.RuntimeException: An error occured while executing doInBackground()\r\n       at android.os.AsyncTask$3.done(AsyncTask.java:299)\r\n       at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:273)\r\n       at java.util.concurrent.FutureTask.setException(FutureTask.java:124)\r\n       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:307)\r\n       at java.util.concurrent.FutureTask.run(FutureTask.java:137)\r\n       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)\r\n       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)\r\n       at java.lang.Thread.run(Thread.java:856)\r\nCaused by: java.lang.SecurityException: Not allowed to start service Intent { act=com.google.android.c2dm.intent.REGISTER pkg=com.google.android.gms (has extras) } without permission com.google.android.c2dm.permission.RECEIVE\r\n       at android.app.ContextImpl.startService(ContextImpl.java:1161)\r\n       at android.content.ContextWrapper.startService(ContextWrapper.java:383)\r\n       at com.google.android.gms.gcm.GoogleCloudMessaging.e()\r\n       at com.google.android.gms.gcm.GoogleCloudMessaging.register()\r\n       at eu.inloop.easygcm.GcmHelper$1.doInBackground(GcmHelper.java:189)\r\n       at eu.inloop.easygcm.GcmHelper$1.doInBackground(GcmHelper.java:180)\r\n       at android.os.AsyncTask$2.call(AsyncTask.java:287)\r\n       at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)\r\n       at java.util.concurrent.FutureTask.run(FutureTask.java:137)\r\n       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)\r\n       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)\r\n       at java.lang.Thread.run(Thread.java:856)\r\n```\r\nThis is a problem with Play Services or in the gcmeasy lib? Someone had this problem?"}}