I have a problem too. So far I have solved json dependencies by adding the following library:
<dependency> <groupId>com.google.http-client</groupId> <artifactId>google-http-client-jackson</artifactId> <version>1.15.0-rc</version> </dependency>
and replacing:
JsonHttpParser parser = new JsonHttpParser(new JacksonFactory()); request.addParser(parser);
with:
JsonObjectParser parser = new JsonObjectParser(new JacksonFactory()); request.setParser(parser);
I will let you know how to solve the dependency of GoogleHeaders as soon as I solve it myself.
EDIT: It looks like they removed this class in version 1.14 (see this question ) in favor of HttpHeader. Change GoogleHeaders to HttpHeader and replace setApplicationName with setUserAgent as shown below:
HttpHeaders headers = new HttpHeaders(); headers.setUserAgent("AndroidHive-Places-Test");
source share