我正在编写一个App应用程序,它从Google上的一个文件夹加载一个图片库。代码在本地运行时工作正常(图像被检索并正确显示在网页上),但当部署到上时,代码就会中断。具体来说,在启动以下方法时,返回的驱动器服务为null,不抛出任何异常。凭据(SERVICE_ACCOUNT_EMAIL和PKCS12文件)应该是正确的,因为它们在本地运行代码时工作。public static Drive getDriveService() {
HttpTransport httpTransport = new Net
You may consider re-evaluating expected per-user traffic to the API and adjust project quota limits accordinglyYou may monitor aggregate quota usage and adjust limits in the API Console.所以我在考虑使用API-KEY (从为我的项目创建的
正确使用Files:list live API会返回驱动器中的所有文件(共有5个)。REST API URL (显示参数)如下所示: https://developers.google.com/drive/api/v3/reference/files/list?它没有找到直接在GoogleDrive中创建的两个文件。',
driveId=drive</em