2014-01-07 195 views
2

我正在研究Android應用程序,它應該連接谷歌驅動器以下載一些數據,我已經下載了googledrive示例應用程序,但無法找到Drive GoogleAccountCredential類,因爲我需要將它們導入到訪問谷歌驅動器,我已經添加谷歌播放服務庫到我的應用程序。Google Drive API與Android

我按照此http://software.intel.com/en-us/articles/connecting-to-google-drive-from-an-android-app並使用相同的src代碼。

enter image description here

enter image description here

enter image description here

我怎樣才能解決這個問題。

回答

0

取代

GoogleAccountCredential CRD = GoogleAccountCredential.usingOAuth2(此,DriveScopes.DRIVE_FILE);因爲Arrays.asList已被拒絕(Naresh Bandaru 9985649940)

+0

是的我會,我的問題仍然沒有回答,這是一個配置問題。 –

0

您是否導入GoogleAccountCredential和DriveScopes類?我認爲Eclipse不知道這些類。