GoogleApiClient onConnectionFailed with statusCode=SIGN_IN_REQUIRED

前端 未结 6 1528
别那么骄傲
别那么骄傲 2021-01-01 03:30

I\'m trying to connect my app to Google play service to access Google Drive but It showing me connection failed with statusCode SIGN_IN_REQUIRED.

6条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-01 04:03

    Well i got the messages displayed in the LogCat:

    GoogleApiClient onConnectionFailed with statusCode=SIGN_IN_REQUIRED

    Sign in required means that we need to enable the Google Drive API https://console.developers.google.com

    Download the client_id.json file and add into the /app folder of our project:

    Then we can access with no problem, to get our expected API client connected.:

    For a better use of Google Drive API, this permissions are suggested:

    
    
    
    
    
    

    You can find a complete example here:

    https://github.com/Jorgesys/Android-Google-Drive

提交回复
热议问题