gpt4 book ai didi

java - Google Drive Java 快速入门指南警告

转载 作者:行者123 更新时间:2023-12-01 06:18:27 27 4
gpt4 key购买 nike

以下是错误。

WARNING: Application name is not set. Call Builder#setApplicationName.

Exception in thread "main" java.io.FileNotFoundException: document.txt (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.google.api.client.http.FileContent.getInputStream(FileContent.java:71)
at com.google.api.client.googleapis.media.MediaHttpUploader.upload(MediaHttpUploader.java:361)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:418)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:343)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:460)
at DriveCommandLine.main(DriveCommandLine.java:56)

最佳答案

快速入门应用程序将 document.txt 文件从本地文件系统上传到云端硬盘。在执行代码之前,请将任何名为 document.txt 的文件放在应用程序的工作目录中。

关于java - Google Drive Java 快速入门指南警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17327282/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com