保存数据存储区的Google云端硬盘Java快速入门错误。

时间:2016-10-19 11:03:51

标签: java google-drive-api google-api-java-client google-oauth2

我想使用Google Drive API,因此我按照说明(https://developers.google.com/drive/v3/web/quickstart/java)获得了编译错误。

> c:\wd2>gradle -q run
юъЄ 19, 2016 8:54:50 PM com.google.api.client.util.store.FileDataStoreFactory se
tPermissionsToOwnerOnly
WARNING: unable to change permissions for everybody: C:\Users\Home\.credentials\
drive-java-quickstart
юъЄ 19, 2016 8:54:50 PM com.google.api.client.util.store.FileDataStoreFactory se
tPermissionsToOwnerOnly
WARNING: unable to change permissions for owner: C:\Users\Home\.credentials\driv
e-java-quickstart
Exception in thread "main" java.lang.IllegalArgumentException
        at com.google.api.client.repackaged.com.google.common.base.Preconditions
.checkArgument(Preconditions.java:111)
        at com.google.api.client.util.Preconditions.checkArgument(Preconditions.
java:37)
        at com.google.api.client.googleapis.auth.oauth2.GoogleClientSecrets.getD
etails(GoogleClientSecrets.java:82)
        at com.google.api.client.googleapis.auth.oauth2.GoogleAuthorizationCodeF
low$Builder.<init>(GoogleAuthorizationCodeFlow.java:195)
        at DriveQuickstart.authorize(DriveQuickstart.java:72)
        at DriveQuickstart.getDriveService(DriveQuickstart.java:91)
        at DriveQuickstart.main(DriveQuickstart.java:100)

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> Process 'command 'C:\Program Files\Java\jdk1.8.0_101\bin\java.exe'' finished w
ith non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

c:\wd2>

有人可以帮我解决这个问题吗?

0 个答案:

没有答案