From 7332669e396054573b4cbbb07e9890e21f57f896 Mon Sep 17 00:00:00 2001
From: "smain@google.com"
Ideally, you should develop and test your app on a variety of devices, including -both phones and tablets.
-To install the Google Play services SDK for development:
++ +
+ + +
-in the toolbar.SDK Manager.exe file at the root of the Android
- SDK directory.tools/ directory in the
- Android SDK, then execute android sdk.Scroll to the bottom of the package list, expand Extras, select - Google Play services, and install it. If you're using Android Studio, also install - Google Repository (it provides the Maven repository used for Gradle builds).
-The Google Play services SDK is saved in your Android SDK environment at
- <android-sdk>/extras/google/google_play_services/.
Note: Google Play services 4.0.30 (released -November 2013) and newer versions require Android 2.3 or higher. If your app supports Android 2.2, -you can continue development with the Google Play services SDK, but must instead install -Google Play services for Froyo from the SDK Manager.
- -If you want to test your app on the emulator, expand the directory for Android 4.2.2 - (API 17) or a higher version, select Google APIs, and install it. Then create a - new AVD with Google APIs as - the platform target.
-Note: If you are using Android Studio, skip this step.
-Copy the library project at
- <android-sdk>/extras/google/google_play_services/libproject/google-play-services_lib/
- to the location where you maintain your Android app projects.
-
If you are using Eclipse, import the library project into your workspace. - Click File > Import, select Android > Existing - Android Code into Workspace, and browse to the copy of the library project to import it.
-Using Android Studio:
- -build.gradle file inside your application module directory.
- Note: Android Studio projects contain a top-level
- build.gradle file and a build.gradle file for each module.
+
build.gradle file inside your application module directory.
+ Note: Android Studio projects contain a top-level
+ build.gradle file and a build.gradle file for each module.
Be sure to edit the file for your application module. See
Building Your Project with
Gradle for more information about Gradle.
You can now begin developing features with the Google Play services APIs.
+Using Eclipse or another IDE:
+ + +To make the Google Play services APIs available to your app, you must reference the library project you created in step 4 of the installation instructions.
@@ -156,6 +121,9 @@ element: you can begin developing features with the Google Play services APIs. +To then begin a connection to Google Play services, read Accessing Google Play Services APIs.
+To then begin a connection to Google Play services (required by most Google APIs such +as Google Drive, Google+, and Games), read Accessing Google APIs.
diff --git a/docs/html/sdk/installing/adding-packages.jd b/docs/html/sdk/installing/adding-packages.jd index c38c9277b8c65..f6435f736d1bd 100644 --- a/docs/html/sdk/installing/adding-packages.jd +++ b/docs/html/sdk/installing/adding-packages.jd @@ -14,7 +14,7 @@ ol.large > li { background:#eee; } ol.large > li:nth-child(odd) { -} +} ol.large > li:before { display:inline; left:-40px; @@ -76,7 +76,7 @@ style="vertical-align:bottom;margin:0;height:17px" /> in the toolbar.
@@ -102,7 +102,7 @@ style="vertical-align:bottom;margin:0;height:17px" /> in the toolbar.With the above packages now in your Android SDK, you're ready to build apps
for Android. As new tools and other APIs become available, simply launch the SDK Manager
@@ -208,8 +208,8 @@ the guide to Use Google APIs
To start using Google APIs, such as Maps or
Play Game services, see the guide to
-Accessing Google Play Services
-APIs.