Reputation: 609
I am developing an application where i need to find nearest petrol stations using google places api. But the problem is i am unable to import the libraries. here are the lines where i am getting errors.
import com.google.api.client.googleapis.GoogleHeaders;
import com.google.api.client.http.GenericUrl;
import com.google.api.client.http.HttpRequest;
import com.google.api.client.http.HttpRequestFactory;
import com.google.api.client.http.HttpRequestInitializer;
import com.google.api.client.http.HttpResponseException;
import com.google.api.client.http.HttpTransport;
import com.google.api.client.http.apache.ApacheHttpTransport;
import com.google.api.client.http.json.JsonHttpParser;
import com.google.api.client.json.jackson.JacksonFactory;
Upvotes: 1
Views: 2380
Reputation: 225
try this...
Android Application -> Properties -> Android ->select Google APIS(2.2 or any)-> Apply-> ok.
Then Right Click on your project -> Refresh.
i am not sure ,but i think it shoud work.
Upvotes: 1
Reputation: 109257
Download Google APIs Client Library for Java add this to your android application's build path via Add Jar or Add External Jar.
Android Application -> Properties -> Java Build Path -> Libraries -> Add jars.. or Add External Jars..
Upvotes: 2