Mansi Gupta
Mansi Gupta

Reputation: 46

Maven Build Failure of HelloAnalytics code

I am trying to execute the HelloAnalytics code provided by Google using a maven project in eclipse. After adding all the dependencies it seems, the getDefaultInstance method of GsonFactory class is not being recognised. Can you provide me with the maven repositories for the following:

import com.google.api.client.json.JsonFactory;
import com.google.api.client.json.gson.GsonFactory;

Upvotes: 1

Views: 132

Answers (1)

Nikolay Tomitov
Nikolay Tomitov

Reputation: 947

You may try to add the following maven dependencies in your pom.xml file :

<dependency>
    <groupId>com.google.api-client</groupId>
    <artifactId>google-api-client-gson</artifactId>
    <version>1.22.0</version>
</dependency>

Upvotes: 1

Related Questions