HttpTransport & Plus cannot be resolved to a type when using google plus api

Home / java / HttpTransport & Plus cannot be resolved to a type when using google plus api

Question:
I have created a maven project in which i am using google plus api to get data from google plus.This project is working correctly on my laptop. The project is on github. When i import this project from github into my computer i get the following errors:
HttpTransport cannot be resolved to a type
Plus cannot be resolved to a type
These libraries are getting error:import com.google.api.client.http.HttpTransport;
import com.google.api.client.json.JsonFactory;
import com.google.api.client.util.DateTime;
import com.google.api.services.plus.Plus;
import com.google.api.services.plus.PlusRequestInitializer;
import com.google.api.services.plus.model.Activity;
import com.google.api.services.plus.model.Activity.PlusObject.Attachments;
import com.google.api.services.plus.model.Activity.PlusObject.Attachments.Thumbnails;
This is my maven file: 4.0.0
maven-demo
maven-demo
0.0.1-SNAPSHOT



com.google.apis
google-api-services-plus
v1-rev510-1.22.0


com.github.axet
vget
1.2.4


org.apache.commons
commons-lang3
3.1

1.8
1.8
I have tried cleaning my project, config my build path, adding the google plus api again in maven, restarting eclipse.But it doesnt resolve my problem what should i do?


Answer:

Read more

Leave a Reply

Your email address will not be published. Required fields are marked *