Try Sign-In for Androidサンプルを実行しようとしています。 google-services.jsonを/app
とserver_client_idにstrings.xmlで追加しました。しかし、まだ私は次のエラーを取得していますGoogle認証がアンドロイドで失敗しました
04-20 12:29:31.787 14544-14544/com.google.samples.quickstart.signin D/SignInActivity: handleSignInResult:false
実際の問題は何ですか?私はコード上で何も変更していない。私はプロジェクトレベルとアプリレベルのグラデーションも設定しました。ここで
はフルLogCatは、事前に
04-20 13:12:29.560 15925-15955/com.google.samples.quickstart.signin I/OpenGLRenderer: Initialized EGL, version 1.4
04-20 13:12:29.610 15925-15955/com.google.samples.quickstart.signin D/OpenGLRenderer: Get maximum texture size. GL_MAX_TEXTURE_SIZE is 4096
04-20 13:12:29.610 15925-15955/com.google.samples.quickstart.signin D/OpenGLRenderer: Enabling debug mode 0
04-20 13:12:29.840 15925-15925/com.google.samples.quickstart.signin I/Timeline: Timeline: Activity_idle id: [email protected] time:324063633
04-20 13:12:31.680 15925-15925/com.google.samples.quickstart.signin D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
04-20 13:12:31.830 15925-15925/com.google.samples.quickstart.signin I/Timeline: Timeline: Activity_launch_request id:com.google.samples.quickstart.signin time:324065621
04-20 13:12:31.900 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* installDecor mIsFloating : false
04-20 13:12:31.900 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* installDecor flags : -2139029248
04-20 13:12:31.930 15925-15925/com.google.samples.quickstart.signin W/ResourcesManager: Asset path '/system/framework/com.android.media.remotedisplay.jar' does not exist or contains no resources.
04-20 13:12:31.930 15925-15925/com.google.samples.quickstart.signin W/ResourcesManager: Asset path '/system/framework/com.android.location.provider.jar' does not exist or contains no resources.
04-20 13:12:32.010 15925-15925/com.google.samples.quickstart.signin D/GoogleSignInApiImpl: getSavedSignInResultIfEligible
04-20 13:12:32.010 15925-15925/com.google.samples.quickstart.signin D/GoogleSignInApiImpl: trySilentSignIn
04-20 13:12:32.030 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* installDecor mIsFloating : true
04-20 13:12:32.030 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* installDecor flags : 8388610
04-20 13:12:32.080 15925-15925/com.google.samples.quickstart.signin D/SecWifiDisplayUtil: Metadata value : none
04-20 13:12:32.110 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
04-20 13:12:32.110 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* isFloatingMenuEnabled return false
04-20 13:12:32.130 15925-15925/com.google.samples.quickstart.signin D/SRIB_DCS: log_dcs ThreadedRenderer::initialize entered!
04-20 13:12:32.140 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
04-20 13:12:32.140 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* isFloatingMenuEnabled return false
04-20 13:12:32.160 15925-15925/com.google.samples.quickstart.signin D/SRIB_DCS: log_dcs ThreadedRenderer::initialize entered!
04-20 13:12:32.260 15925-15955/com.google.samples.quickstart.signin D/OpenGLRenderer: endAllStagingAnimators on 0xb86c9a88 (ListView) with handle 0xb878aa58
04-20 13:12:32.270 15925-15925/com.google.samples.quickstart.signin I/Timeline: Timeline: Activity_idle id: [email protected] time:324066065
04-20 13:12:32.550 15925-15925/com.google.samples.quickstart.signin V/ActivityThread: updateVisibility : ActivityRecord{14bd6f68 [email protected] {com.google.samples.quickstart.signin/com.google.samples.quickstart.signin.ChooserActivity}} show : false
04-20 13:12:33.230 15925-15925/com.google.samples.quickstart.signin D/SignInActivity: handleSignInResult:false
04-20 13:12:34.610 15925-15925/com.google.samples.quickstart.signin D/ViewRootImpl: ViewPostImeInputStage ACTION_DOWN
04-20 13:12:34.700 15925-15925/com.google.samples.quickstart.signin I/Timeline: Timeline: Activity_launch_request id:com.google.samples.quickstart.signin time:324068493
04-20 13:12:34.780 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* installDecor mIsFloating : false
04-20 13:12:34.780 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* installDecor flags : 8454400
04-20 13:12:34.780 15925-15925/com.google.samples.quickstart.signin D/SecWifiDisplayUtil: Metadata value : none
04-20 13:12:34.780 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* isFloatingMenuEnabled mFloatingMenuBtn : null
04-20 13:12:34.780 15925-15925/com.google.samples.quickstart.signin D/PhoneWindow: *FMB* isFloatingMenuEnabled return false
04-20 13:12:34.800 15925-15925/com.google.samples.quickstart.signin D/SRIB_DCS: log_dcs ThreadedRenderer::initialize entered!
04-20 13:12:34.830 15925-15925/com.google.samples.quickstart.signin I/Timeline: Timeline: Activity_idle id: [email protected] time:324068628
04-20 13:12:34.840 15925-15925/com.google.samples.quickstart.signin V/ActivityThread: updateVisibility : ActivityRecord{3a106db9 [email protected] {com.google.samples.quickstart.signin/com.google.samples.quickstart.signin.SignInActivity}} show : true
04-20 13:12:34.840 15925-15925/com.google.samples.quickstart.signin V/ActivityThread: updateVisibility : ActivityRecord{108345fe [email protected] {com.google.samples.quickstart.signin/com.google.android.gms.auth.api.signin.internal.SignInHubActivity}} show : true
04-20 13:12:35.810 15925-15954/com.google.samples.quickstart.signin I/GMPM: Tag Manager is not found and thus will not be used
04-20 13:12:36.130 15925-15925/com.google.samples.quickstart.signin D/SignInActivity: handleSignInResult:false
04-20 13:12:36.170 15925-15925/com.google.samples.quickstart.signin I/Timeline: Timeline: Activity_idle id: [email protected] time:324069967
おかげです。
'google-services.json'をコピー貼り付けで直接'/app'に追加しましたか?またはAndroid Studio Terminalを使用しましたか? –
@PravalSharma by copy paste – anuradha
私の答えを見てください私はgoogle + loginでアプリを作ったときも同じミスをします。 @codehub –