【发布时间】:2018-06-13 13:54:31
【问题描述】:
我在项目中添加了 3 个依赖项
compile 'com.google.api-client:google-api-client:1.22.0'
compile 'com.google.oauth-client:google-oauth-client-jetty:1.22.0'
compile 'com.google.apis:google-api-services-drive:v3-rev59-1.22.0'
但是,Drive.Files 类没有 insert() 方法 https://zapodaj.net/b19acf76dccdb.png.html https://zapodaj.net/4e6df99cee1bf.png.html
为什么?
【问题讨论】:
-
没有参数的
Drive.Files#insert()不存在。insert()方法的两个版本都带有参数。你的问题不清楚,你期待什么,为什么?此外,请在您的问题中包含 Java 代码。 -
在这部电影youtu.be/Ymqudfh4ovI?t=20m1s你可以看到。
-
您在 Internet 上的一些随机视频中看到的内容没有区别。查看 Javadoc 以了解可用的方法。没有零参数
insert()方法。 -
developers.google.com/resources/api-libraries/documentation/… 在我的代码中,我表明这种方法根本不可用。
标签: java spring spring-boot gradle google-drive-api