12-23 02:46:24.276 1533-1533/com.my.app E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.my.app, PID: 1533
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.app/com.my.app.MainActivity}: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2298)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
Caused by: java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf
at com.google.android.gcm.GCMRegistrar.checkDevice(GCMRegistrar.java:98)
at com.my.app.MainActivity.registerGcm(MainActivity.java:59)
at com.my.app.MainActivity.onCreate(MainActivity.java:54)
at android.app.Activity.performCreate(Activity.java:5933)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1105)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2251)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2360)
at android.app.ActivityThread.access$800(ActivityThread.java:144)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1278)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
java.lang.UnsupportedOperationException: Device does not have package com.google.android.gsf 로 구글신께 검색해보니
에뮬레이터라서 뻗었다고 하신다. 실 기기에서 테스트 해보거나 google API로 변경하면 된다고 하신다.
'개발 > 안드로이드' 카테고리의 다른 글
singleTask (0) | 2015.04.07 |
---|---|
안드로이드에서 OTF 지원 불가 (0) | 2015.03.24 |
안드로이드 스튜디오가 1.0으로 업데이트 되면서 1 (0) | 2014.12.23 |
안드로이드 스튜디오가 1.0으로 업데이트 되면서 2 (0) | 2014.12.23 |
댓글