我正在嘗試將Google Drive導入到我的Android項目中。我已經從debug.keystore複製了SHA1密鑰,並且使用了相同的軟件包名稱。對於活動我用谷歌從驅動器的快速啓動代碼(https://github.com/googledrive/android-quickstart/blob/master/src/com/google/android/gms/drive/sample/quickstart/MainActivity.java)授權錯誤Google Drive Android
我不斷收到以下錯誤([email protected]是應用程序的名稱=> Applicationi =>權限的所有者):
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.
這裏是我的清單:
<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>
任何想法?
感謝
你解決了嗎? – powder366