Reputation: 1746
As a followup to this question: Error - The import com.google can not be resolved, I was wondering how one can import the necessary Google APIs.
Specifically, I need to:
import com.google.android.gms.common.GooglePlayServicesUtil;
I have downloaded Google Play via the Android SDK Manager as suggested by (The import com.google.android.gms cannot be resolved)
Thanks for your help!
Upvotes: 0
Views: 2324
Reputation: 2464
you have to do following steps
1.go to your android extra folder inside your android sdk.
2.then go to google folder and then you will find google play services folder.
3.Inside google play services, you will find libproject folder.You have to import this as your library project in your workspace.
4.Add this library project in your application as library.
Note - If you wont find libproject folder in your google play services folder then update your google play service in your sdk.
Upvotes: 0
Reputation: 20563
You can find detailed instructions for this on the developer site here:
http://developer.android.com/google/play-services/setup.html
Upvotes: 2