我尝试从Google Drive API设置项目,以便能够在Intellij中检测此API使用的功能或对象。
例如:
GoogleClientSecrets clientSecrets =
GoogleClientSecrets.load(JSON_FACTORY, new InputStreamReader(in));
GoogleClientSecrets 。
我已经执行this,但没有解决方案。
知道如何解决问题吗?
答案 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