Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Authorization error Google Drive Android

I am trying to import Google Drive into my Android project. I have copied a SHA1 key from debug.keystore and I am using the same package name. For the Activity I used the quickstart 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 following errors ([email protected] is 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 [email protected] 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's 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?

Thanks

like image 971
David Avatar asked Apr 26 '26 07:04

David


1 Answers

Need to set consent screen (API's & Auth)

like image 67
David Avatar answered Apr 27 '26 19:04

David