Intellij识别Google云端硬盘代码

时间:2017-03-10 17:28:58

标签: java intellij-idea google-drive-api

我尝试从Google Drive API设置项目,以便能够在Intellij中检测此API使用的功能或对象。

例如:

GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));

无法识别

GoogleClientSecrets

我已经执行this,但没有解决方案。

知道如何解决问题吗?

1 个答案:

答案 0 :(得分:1)

您需要Drive API Client Library for Java

将所有广告加入module dependencies

GoogleClientSecrets在这里:

google-api-services-drive-v3-rev61-java-1.22.0.zip\drive\libs\google-api-client-1.22.0.jar\com\google\api\client\googleapis\auth\oauth2\GoogleClientSecrets.class