Google 드라이브 API를 통합하는 Android 앱을 구축하려고하며 드라이브를 저장 용량으로 사용합니다. 처음. https://developers.google.com/drive/android/get-started 및이라는 또 다른 가이드가 있고 소스 코드를 다운로드하고 내 API 키를 교체하는 경우에도 정확한 가이드 라인을 따르고 있습니다.Google 드라이브 Api는 Google 계정에 연결할 수 없거나 승인 할 수 없습니다.
I 앱이 내가 콘솔에서 다음과 같은 출력을 얻을 드라이브에 연결되어 있는지 확인하기 위해 응용 프로그램을 실행 테스트하려고 할 때마다 : 또한
$ adb shell am start -n "app.googledrive/app.googledrive.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Client not ready yet..Connected to process 2889 on device emulator-5554
W/System: ClassLoader referenced unknown path: /data/app/app.googledrive-1/lib/x86
I/InstantRun: Instant Run Runtime started. Android package is app.googledrive, real application class is null.
[ 01-16 12:33:01.211 1561: 1584 D/ ]
HostConnection::get() New Host Connection established 0x953a3740, tid 1584
W/System: ClassLoader referenced unknown path: /data/app/app.googledrive-1/lib/x86
I/GMPM: App measurement is starting up, version: 8487
I/GMPM: To enable debug logging run: adb shell setprop log.tag.GMPM VERBOSE
I/OpenGLRenderer: Initialized EGL, version 1.4
D/OpenGLRenderer: Swap behavior 1
E/EGL_emulation: tid 2930: eglSurfaceAttrib(1174): error 0x3009 (EGL_BAD_MATCH)
W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x94efd500, error=EGL_BAD_MATCH
I/Google Drive Activity: GoogleApiClient connection failed: ConnectionResult{statusCode=SIGN_IN_REQUIRED, resolution=PendingIntent{e061739: [email protected]}, message=null}
계정을 추가 진열되어있는 구글 로그인 나에게 그것은 Google 서버에 연결되지만 계정을 인식하지 못하거나 하나 또는 다른 이유로 로그인하는 것을 의미합니다. 또한 키 저장소를 다시 생성하여 개발자 콘솔에 다시 추가하고 제한되지 않은 키를 사용하여 똑같은 문제가 발생했습니다.
이 문제를 해결하는 방법에 대한 도움이나 제안을 보내 주시면 대단히 감사하겠습니다.
기기를 사용해보세요. 로그인을 위해 에뮬레이터에 문제가있을 수 있습니다. – avinash
감사합니다. @avinash for suggestions. 나는 그것을 안드로이드 장치에서 직접 실행하려고 시도했지만 여전히 계정을 선택하고 장치에서 내 계정을 클릭 할 때마다 다음 메시지가 여전히 android studio에서 발생합니다. – user6709078
'01- 17 : 13 : 35 : 13.375 9923-9923/app.googledrive D/AppTracker : 앱 이벤트 시작 : 01-17 13 : 35 : 13.413 9923-9923/app.googledrive I/Google 드라이브 활동 : GoogleApiClient 연결 실패 : ConnectionResult {statusCode = SIGN_IN_REQUIRED, resolution = PendingIntent {a77a4d3 : [email protected]}, message = null} 01-17 13 : 35 : 13.429 9923-9923/app.googledrive D/AppTracker : 앱 이벤트 : stop 01-17 13 : 35 : 13.445 9923-9923/app.googledrive D/AbstractTracker : 이벤트 성공 01-17 13 : 35 : 13.463 9923-9923/app.googledrive D/AbstractTracker : 이벤트 성공 ' – user6709078