GeezerVison is showing github.com — No getService method in google-cloud-storage · Issue #1813 · googleapis/google-cloud-java
No getService method in google-cloud-storage #1813DescriptionREADME.MD for google-cloud-storage refers to
Storage storage = StorageOptions.getDefaultInstance().getService();
and a few other times. It appears this is no longer accurate at 0.10.alpha.
I.e. the StorageOptions class does not have a getService method. I'm not sure what it should be replaced with. Activitygarrettjonesgoogle commented on Mar 27, 2017 getService() is present on ServiceOptions which StorageOptions extends. It was never changed. The code you pasted here should work fine.
elharo commented on Mar 27, 2017 ContributorAuthor More actions OK, I must be doing something wrong. I'll dig into this further. elharo commented on Mar 27, 2017 ContributorAuthor More actions Multiple markers at this line
- The method getService() is undefined for the type StorageOptions
- The type com.google.cloud.HttpServiceOptions cannot be resolved. It is indirectly referenced
from required .class files
elharo commented on Mar 27, 2017 ContributorAuthor More actions Digging into my jar I do see the getService method. I don't see com.google.cloud.HttpServiceOptions in google-cloud-core-0.10.0-alpha.jar. What jar should that be in? garrettjonesgoogle commented on Mar 27, 2017 I think you are out of sync somehow. If you build both -core and -storage fresh, or make sure that they are both at 0.10.0, it should all work. It looks like you might have the old version of -storage pointing to the new version of -core. (HttpServiceOptions was taken out of the hierarchy and is now a standalone class, HttpTransportOptions) elharo commented on Mar 28, 2017 ContributorAuthor More actions This appears to be the problem. Thanks. Closing.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|