Android Drive authorization error

I am trying to import Google Drive into my Android project. I copied the SHA1 key from debug.keystore and I use the same package name. For Activity, I used the quick launch code from Google Drive ( https://github.com/googledrive/android-quickstart/blob/master/src/com/google/android/gms/drive/sample/quickstart/MainActivity.java )

I keep getting the following errors ( myemail@gmail.com is the owner of the application name => Applicationi => Permissions):

    W/GLSActivity(12741): [anc] Status from wire: INVALID_CLIENT_ID status: null

    I/GLSUser(12741): GLS error: INVALID_CLIENT_ID myemail@gmail.com oauth2:https://www.googleapis.com/auth/drive.file

    E/ClientConnectionOperation(21217): Handling authorization failure

    E/ClientConnectionOperation(21217): boq: Authorization failed: See https://developers.google.com/drive/android/auth for details on authorizing an application.

Here is my manifest:

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="19" />

<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" >
</uses-permission>

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
    <meta-data
        android:name="com.google.android.gms.version"
        android:value="@integer/google_play_services_version" />

    <activity
        android:name="com.example.drivequickstart.MainActivity"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Any ideas?

thank

+3
source share
4 answers

Must set consent screen (API and Auth)

+4
source

, . Google , . , , - , / .

0

I had it, I did everything right, but still could not. Finally, I created a new Project in the Google Developers Console. There I created everything again.

0
source

Everything that you configured is done. Now you just need to add the consent screen to the Google Developer Console. Go to https://developers.google.com/console/help/new/#userconsent to finish this one.

0
source

All Articles