Hello,
I am trying to upload files to google bucket. I am using the following standard code
Storage storage = StorageOptions.newBuilder().setProjectId(projectId).build().getService();
BlobId blobId = BlobId.of(bucketName, objectName);
BlobInfo blobInfo = BlobInfo.newBuilder(blobId).build();
storage.create(blobInfo, Files.readAllBytes(Paths.get(filePath)));
However, i am receiving the following error
Exception in thread "main" java.lang.NoSuchMethodError: com.google.cloud.ServiceOptions.getQuotaProjectId()Ljava/lang/String;
I have google-cloud-core-1.25.0.jar as Referenced Library in my Eclipse project. I checked the ServiceOptions class in the library, but could not see any method getQuotaProjectId(). Do i need to add any additional jar file or my version is not correct
Regards
Neelam Jain