mateilles718 / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

UrlFetchTransport not found #895

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.15.0-rc)?
1.19

Java environment (e.g. Java 6, Android 2.3, App Engine)?
App Engine, Java 7

Describe the problem.
UrlFetchTransport class not found.
I pulled all the sources and did "grep UrlFetch -r -l" and found just 
references, but no declaration. Examples hence don't work either 
"ClassNotFound". Looks like it was removed somewhere around 1.3.0 and noone 
noticed :(

How would you expect it to be fixed?
Probably it's been moved to another library. Tell us what it is please, Googel 
doesn't know either (besides this library at version 1.3.0).

Original issue reported on code.google.com by dlaze...@gmail.com on 28 Jul 2014 at 7:27

GoogleCodeExporter commented 9 years ago
This library depends on the Google HTTP Java Client library [1], and 
UrlFetchTransport is defined there. You should be able to get all the dependent 
libraries if you use Maven, or download the zip bundle from our Downloads page 
[2].

For more instructions on dealing with dependencies, read up on 
https://code.google.com/p/google-api-java-client/wiki/Setup

[1] 
https://code.google.com/p/google-http-java-client/source/browse/google-http-clie
nt-appengine/src/main/java/com/google/api/client/extensions/appengine/http/UrlFe
tchTransport.java
[2] https://code.google.com/p/google-api-java-client/wiki/Downloads?tm=2

Original comment by wonder...@google.com on 29 Dec 2014 at 10:33

GoogleCodeExporter commented 9 years ago
Long time passed, but I believe I tried what you're suggesting, and it didn't 
work. Because this library does not depend on 
com.google.http-client:google-http-client-appengine: 
http://repo1.maven.org/maven2/com/google/api-client/google-api-client/1.19.1/goo
gle-api-client-1.19.1.pom

Manually adding the dependency may be a workaround.

Original comment by dlaze...@gmail.com on 29 Dec 2014 at 10:47

GoogleCodeExporter commented 9 years ago
This library has 9 modules (separately packaged on Mavan), and one of them 
(com.google.api-client:google-api-client-appengine) DOES depend on 
com.google.http-client:google-http-client-appengine [1], as explained in [2].

As you are working on an AppEngine project, you should have 
com.google.api-client:google-api-client-appengine, 
com.google.oauth-client:google-oauth-client-appengine, and 
com.google.http-client:google-http-client-appengine on your classpath. I don't 
know how you are managing your dependencies, but if you are using Maven, it 
will pull the required dependencies for you.

If you are building from source, make sure you check out the dependent 
repositories first: 
https://code.google.com/p/google-http-java-client/source/checkout and 
https://code.google.com/p/google-oauth-java-client/source/checkout

[1] 
https://repo1.maven.org/maven2/com/google/api-client/google-api-client-appengine
/1.19.1/google-api-client-appengine-1.19.1.pom
[2] 
https://code.google.com/p/google-api-java-client/wiki/Setup#google-api-client-ap
pengine

Original comment by wonder...@google.com on 29 Dec 2014 at 11:00

GoogleCodeExporter commented 9 years ago
Ah, awesome, thanks!

Original comment by dlaze...@gmail.com on 29 Dec 2014 at 11:02