Reputation: 2649
App Crashes throwing exception while launching:
java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
What should be configuration of emulator and VM?
Upvotes: 2
Views: 5585
Reputation: 1903
The solution for this problem.
You should create a new Emulator using Google Api. then, re deploy your app in this new android emulator.
The result:
08-06 19:18:55.590: V/GCMBroadcastReceiver(841): onReceive: com.google.android.c2dm.intent.REGISTRATION
08-06 19:18:55.590: V/GCMBroadcastReceiver(841): GCM IntentService class: org.gdglima.taller.labuno.GCMIntentService
08-06 19:18:55.600: V/GCMBaseIntentService(841): Acquiring wakelock
08-06 19:18:55.630: V/GCMBaseIntentService(841): Intent service name: GCMIntentService-DynamicSenderIds-1
08-06 19:18:55.710: D/GCMBaseIntentService(841): handleRegistration: registrationId = APA91bHoqz3F7X-QByP8pvOuyZQHthpQB6vrL_3REPOtO8GrCsD_aXrfNzvW4zxbtfkoXMAAjnf0wuARu12h9O4HP-4IHJI6peFRlDkdZC0MqzJhdw47_8VspjsiwDysmEp9_W4RdoPaIzK0bxiTIeGaEMkkK8oq-Q, error = null, unregistered = null
08-06 19:18:55.710: D/GCMRegistrar(841): resetting backoff for org.gdglima.taller.labuno
08-06 19:18:55.730: V/GCMRegistrar(841): Saving regId on app version 1
08-06 19:18:55.870: D/GCMTest(841): REGISTRATION: onRegistered OK.
08-06 19:18:55.930: V/GCMBaseIntentService(841): Releasing wakelock
Upvotes: 6
Reputation: 1
If you got "Received error: PHONE_REGISTRATION_ERROR " in the AVD. you should restart your APP,then you will get the right information.
Upvotes: 0