Java GoogleDriveAPI-Drive.Files类没有insert()方法
我在项目中添加了3个依赖项Java GoogleDriveAPI-Drive.Files类没有insert()方法,java,spring,spring-boot,gradle,google-drive-api,Java,Spring,Spring Boot,Gradle,Google Drive Api,我在项目中添加了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()方法 为什么?在v3中,合适的方法是
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()
方法
为什么?在v3中,合适的方法是create(),而不是insert()
驱动器。不带参数的文件#insert()
不存在。insert()
方法的两个版本都使用参数。你的问题不清楚,你期待什么,为什么?另外,在你的问题中包括Java代码。在这部电影中你可以看到。在互联网上的一些随机视频中,你看到的没有什么不同。查看Javadoc以了解哪些方法可用。没有零参数insert()
方法。在我的代码中,我表明这样的方法根本不可用。