导入com.google.api.services.storage无法解析 [英] The import com.google.api.services.storage cannot be resolved
本文介绍了导入com.google.api.services.storage无法解析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
import com.google.api.services.storage.Storage;
import com.google.api.services.storage.StorageScopes;
要添加哪些JAR,在哪里可以找到它们?
What are the JARs to be added and where can I find them?
推荐答案
您似乎正在尝试使用Google API客户端库Java版的GCS组件.如果您使用的是Maven,则为:
That looks like you're trying to use the GCS component of the Google API Client Library for Java. If you're using Maven, it's:
<project>
<dependencies>
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-storage</artifactId>
<version>v1-rev82-1.22.0</version>
</dependency>
</dependencies>
</project>
JAR本身将位于 https://developers .google.com/resources/api-libraries/download/storage/v1/java
These links, as well as Gradle snippets and documentation, are at: https://developers.google.com/api-client-library/java/apis/storage/v1
这篇关于导入com.google.api.services.storage无法解析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文