마스터Q&A 안드로이드는 안드로이드 개발자들의 질문과 답변을 위한 지식 커뮤니티 사이트입니다. 안드로이드펍에서 운영하고 있습니다. [사용법, 운영진]

구글플레이와 연동하는 방법

0 추천

게임을 만들고 있는데요

 

프로그램이나 디스플레이같은건 다 만들었는데 이제 구글플레이랑 연동만 하면 되는 단계입니다.

Main 함수에 GoogleApiClient.ConnectionCallbacks,
GoogleApiClient.OnConnectionFailedListener를 모두 implement햇구요
 
implement한 메소드들은 건드리지 않고 그냥 추가만 해놨어요.
 
문제가 되는 부분은 아래 부분인데
 
mGoogleApiClient = new GoogleApiClient.Builder(this)
.addConnectionCallbacks(this)
.addOnConnectionFailedListener(this).addApi(Plus.API)
.addScope(Plus.SCOPE_PLUS_LOGIN).addApi(Games.API)
.addScope(Games.SCOPE_GAMES).build();
 
mGoogleApiClient.connect();
 
이렇게 하면 가차없이 튕겨버리는데 왜그런걸까요...
 
 
 
 
혹시몰라 로그를 첨부하자면
01-06 16:59:31.233: E/AndroidRuntime(32591): java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
01-06 16:59:31.233: E/AndroidRuntime(32591): at com.google.android.gms.common.internal.e$h.b(Unknown Source)
01-06 16:59:31.233: E/AndroidRuntime(32591): at com.google.android.gms.common.internal.e$h.g(Unknown Source)
01-06 16:59:31.233: E/AndroidRuntime(32591): at com.google.android.gms.common.internal.e$b.gU(Unknown Source)
01-06 16:59:31.233: E/AndroidRuntime(32591): at com.google.android.gms.common.internal.e$a.handleMessage(Unknown Source)
01-06 16:59:31.233: E/AndroidRuntime(32591): at android.os.Handler.dispatchMessage(Handler.java:102)
01-06 16:59:31.233: E/AndroidRuntime(32591): at android.os.Looper.loop(Looper.java:157)
01-06 16:59:31.233: E/AndroidRuntime(32591): at android.app.ActivityThread.main(ActivityThread.java:5356)
01-06 16:59:31.233: E/AndroidRuntime(32591): at java.lang.reflect.Method.invokeNative(Native Method)
01-06 16:59:31.233: E/AndroidRuntime(32591): at java.lang.reflect.Method.invoke(Method.java:515)
01-06 16:59:31.233: E/AndroidRuntime(32591): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
01-06 16:59:31.233: E/AndroidRuntime(32591): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
01-06 16:59:31.233: E/AndroidRuntime(32591): at dalvik.system.NativeStart.main(Native Method)
 
이렇습니다.... 너무 초보라 로그를 읽을줄도 몰라서 뭐가 잘못됬는지 모르겟어요...

 

초보개발자z (1,480 포인트) 님이 2015년 1월 6일 질문

1개의 답변

0 추천
Google play service를 사용하시는 것 같은데 로그가 코어쪽로그라서 원인 파악이 힘드네요.

전체 로그를 첨부해주신 것은 맞는지요?

혹시 실제 폰이 아닌 에뮬에서 실행하신 것은 아닌지,

개발 문서를 보고 빠진부분은 없는지 하나하나 체크해 보시길 바랍니다.
안_드루이드 (14,510 포인트) 님이 2015년 1월 7일 답변
실제 기기로 실행한 거구요... 다 똑같이 햇는데ㅠㅠ
전체 로그는
01-08 19:32:28.105: W/ApplicationPackageManager(14976): getCSCPackageItemText()
01-08 19:32:28.105: I/PersonaManager(14976): getPersonaService() name persona_policy
01-08 19:32:28.155: W/PopupManager(14976): You have not specified a View to use as content view for popups. Falling back to the Activity content view which may not work properly in future versions of the API. Use setViewForPopups() to set your content view.
01-08 19:32:28.165: W/ApplicationPackageManager(14976): getCSCPackageItemText()
01-08 19:32:28.245: I/DBG(14976): ADstart
01-08 19:32:28.425: I/2.3.4(14976): [INFO] Activated Ad@m Ad
01-08 19:32:28.455: I/Adreno-EGL(14976): <qeglDrvAPI_eglInitialize:410>: EGL 1.4 QUALCOMM build:  ()
01-08 19:32:28.455: I/Adreno-EGL(14976): OpenGL ES Shader Compiler Version: E031.24.00.08+13
01-08 19:32:28.455: I/Adreno-EGL(14976): Build Date: 03/20/14 Thu
01-08 19:32:28.455: I/Adreno-EGL(14976): Local Branch: 0320_AU200_patches
01-08 19:32:28.455: I/Adreno-EGL(14976): Remote Branch:
01-08 19:32:28.455: I/Adreno-EGL(14976): Local Patches:
01-08 19:32:28.455: I/Adreno-EGL(14976): Reconstruct Branch:
01-08 19:32:28.495: D/OpenGLRenderer(14976): Enabling debug mode 0
01-08 19:32:28.505: D/AndroidRuntime(14976): Shutting down VM
01-08 19:32:28.505: W/dalvikvm(14976): threadid=1: thread exiting with uncaught exception (group=0x41baada0)
01-08 19:32:28.505: E/AndroidRuntime(14976): FATAL EXCEPTION: main
01-08 19:32:28.505: E/AndroidRuntime(14976): Process: kaist.smakle.sixtn, PID: 14976
01-08 19:32:28.505: E/AndroidRuntime(14976): java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
01-08 19:32:28.505: E/AndroidRuntime(14976):     at com.google.android.gms.common.internal.e$h.b(Unknown Source)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at com.google.android.gms.common.internal.e$h.g(Unknown Source)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at com.google.android.gms.common.internal.e$b.gU(Unknown Source)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at com.google.android.gms.common.internal.e$a.handleMessage(Unknown Source)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at android.os.Handler.dispatchMessage(Handler.java:102)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at android.os.Looper.loop(Looper.java:157)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at android.app.ActivityThread.main(ActivityThread.java:5356)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at java.lang.reflect.Method.invokeNative(Native Method)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at java.lang.reflect.Method.invoke(Method.java:515)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
01-08 19:32:28.505: E/AndroidRuntime(14976):     at dalvik.system.NativeStart.main(Native Method)

이렇습니다 도와주세요ㅠㅠ
...