You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No getService method in google-cloud-storage #1813
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
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?
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)
Activity
garrettjonesgoogle commentedon Mar 27, 2017
getService()is present onServiceOptionswhichStorageOptionsextends. It was never changed. The code you pasted here should work fine.elharo commentedon Mar 27, 2017
OK, I must be doing something wrong. I'll dig into this further.
elharo commentedon Mar 27, 2017
elharo commentedon Mar 27, 2017
Digging into my jar I do see the
getServicemethod. I don't seecom.google.cloud.HttpServiceOptionsin google-cloud-core-0.10.0-alpha.jar. What jar should that be in?garrettjonesgoogle commentedon 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. (
HttpServiceOptionswas taken out of the hierarchy and is now a standalone class,HttpTransportOptions)elharo commentedon Mar 28, 2017
This appears to be the problem. Thanks. Closing.
chore: Update `dependabot.yml` template (#1813) (#1372)
deps: update dependency com.google.cloud:sdk-platform-java-config to …
chore: Update `dependabot.yml` template (#1813) (#1111)
chore: Update `dependabot.yml` template (#1813) (#1112)
chore: Update `dependabot.yml` template (#1813) (#1220)
1 remaining item
chore: Update `dependabot.yml` template (#1813) (#2758)
chore: Update `dependabot.yml` template (googleapis#1813) (googleapis…
deps: update dependency com.google.cloud:sdk-platform-java-config to …
chore: Update `dependabot.yml` template (#1813) (#1220)
feat: Add projectId getter to GoogleCredentials (#1813)
chore: Update `dependabot.yml` template (googleapis#1813) (googleapis…
chore(main): release 2.24.2-SNAPSHOT (googleapis#1813)
chore: Update `dependabot.yml` template (#1813) (#1199)
chore: Update `dependabot.yml` template (#1813) (#1199)
chore: Update `dependabot.yml` template (#1813) (#1622)
chore(main): release 1.125.11 (#1813)
chore: Update `dependabot.yml` template (#1813) (#1622)
chore(main): release 1.125.11 (#1813)
deps: update beam.version to v2.59.0 (#1813)
chore: Update `dependabot.yml` template (googleapis#1813) (googleapis…