Authorizing my application to use an Existing Folder

前端 未结 4 926
梦如初夏
梦如初夏 2021-01-14 00:14

Using the Android Drive API, when trying to connect using:

mGoogleApiClient = new GoogleApiClient.Builder(this)
            .addApi(Drive.API).addScope(Drive         


        
4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-14 01:00

        mGoogleApiClient = new GoogleApiClient.Builder(this)
            .addApi(Drive.API)
            .addScope(Drive.SCOPE_FILE)
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this)
            .build();
    

    I think you missed the addScope, I never worked with it myself but this is what i could find missing, when looking at the documentation. documentation

提交回复
热议问题