Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android The import com.google cannot be resolved

I'm trying to test LocationService example of Android developer as per following link http://developer.android.com/training/location/retrieve-current.html. At that time, error message show me that "The import com.google cannot be resolved" for following 5 lines. I'm really confused how to solve this problem.

import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesClient;
import com.google.android.gms.common.GooglePlayServicesUtil;
import com.google.android.gms.location.LocationClient;
import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
like image 388
PPShein Avatar asked Jun 18 '13 09:06

PPShein


1 Answers

You will need the Google Play Services SDK configured within Eclipse and import google play services as library will dismiss this error .

like image 175
Manmohan Badaya Avatar answered Oct 07 '22 01:10

Manmohan Badaya