【发布时间】:2020-04-07 23:12:47
【问题描述】:
我正在浏览 Google 的 Java 快速入门页面以获取 google 表格,但在完成这些步骤并尝试运行提供的示例代码后,我收到以下错误:
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
NetHttpTransport cannot be resolved to a type
GoogleNetHttpTransport cannot be resolved
Sheets cannot be resolved to a type
Builder cannot be resolved to a type
Sheets cannot be resolved to a type
JsonFactory cannot be resolved to a type
The method getValues() is undefined for the type ValueRange
at SheetsQuickstart.main(SheetsQuickstart.java:66)
有什么可能导致它的想法吗?
这是我关注的快速入门表: https://developers.google.com/sheets/api/quickstart/java
【问题讨论】:
-
能否提供您放置依赖项的文件?可能您以错误的方式使用它们
标签: java google-sheets google-sheets-api google-api-java-client