Android SDK 管理器中缺少 Google Play 服务
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/20301016/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Missing Google Play Services in SDK Manager
提问by user2982082
I want to use Google Maps in my app. I want to install Google Play Services in the SDK Manager, but when I go to the SDK Manager, I don't see Google Play Services! Why? How can I install this? Can I install this independently of the SDK Manager?
我想在我的应用中使用 Google 地图。我想在 SDK Manager 中安装 Google Play Services,但是当我进入 SDK Manager 时,我没有看到 Google Play Services!为什么?我该如何安装?我可以独立于 SDK Manager 安装它吗?
I searched, but I could not find a solution for this.
我进行了搜索,但找不到解决方案。
I see these in Extras:
我在 Extras 中看到这些:
- Android Support Library
- Google AdMob Ads SDK
- Google Analytics SDK
- Google Cloud Messaging for Android Library
- Google Play Billing Library
- Google Play Licensing Library
- Google Play APK Expansion Library
- Google USB Driver
- Google Web Driver
- Intel Hardware Accelerated Execution Manager
- 安卓支持库
- Google AdMob 广告 SDK
- 谷歌分析 SDK
- 适用于 Android 库的 Google Cloud Messaging
- Google Play 结算库
- Google Play 许可库
- Google Play APK 扩展库
- 谷歌USB驱动
- 谷歌网络驱动程序
- 英特尔硬件加速执行管理器
采纳答案by amuttsch
Download the new SDK here: https://developer.android.com/sdk/index.htmland start the SDK Manager. Then you will find the Google Play Services.
在此处下载新的 SDK:https: //developer.android.com/sdk/index.html并启动 SDK Manager。然后您会找到 Google Play 服务。
Afterwards, update the ADT inside Eclipse and you are ready to go!
之后,更新 Eclipse 中的 ADT,您就可以开始了!
Old post:
旧帖子:
If you want to use Google Maps API in your app, you have to download the Google API in the Android SDK.
如果您想在您的应用中使用 Google Maps API,您必须下载 Android SDK 中的 Google API。
Open the SDK, open the newest Android API "folder" (Android 4.4), check Google API's and download it. After that, open the project properties in Eclipse and choose Android. In "Project Build Target" choose Google APIs with API Level 19.
打开 SDK,打开最新的 Android API“文件夹”(Android 4.4),查看 Google API 并下载。之后,在 Eclipse 中打开项目属性并选择 Android。在“项目构建目标”中,选择 API 级别为 19 的 Google API。
Then you can use the Google Maps Activities etc.
然后你可以使用谷歌地图活动等。
Be sure to use the newest Android SDK Manager, i have currently revision 22.3.
请务必使用最新的 Android SDK 管理器,我目前的版本为 22.3。
回答by Arhat Baid
No need to again download the SDK Manager as suggested earlier.
无需像之前建议的那样再次下载 SDK Manager。
Open SDK Manager>Tools>Manage-add-ons sites>User Defined Sites>New
打开 SDK Manager>Tools>Manage-add-ons sites>User Defined Sites>New
In New, copy the given links one by one and you'll get it.
在新建中,将给定的链接一一复制,您就会得到它。
link 1->http://dl-ssl.google.com/android/repository/repository.xml
链接 1-> http://dl-ssl.google.com/android/repository/repository.xml
link 2->https://dl-ssl.google.com/android/repository/repository.xml
链接 2-> https://dl-ssl.google.com/android/repository/repository.xml
the same way I got my solution.
就像我得到我的解决方案一样。
回答by gian1200
You may need to update:
您可能需要更新:
- Android SDK Tools (Rev 22.3)
- Android SDK Platform-tools (Rev 19)
- ADT Plugin (Version: 22.3.0.v201310242005-887826) (If you are using Eclipse)
- Android SDK 工具(修订版 22.3)
- Android SDK 平台工具(修订版 19)
- ADT 插件(版本:22.3.0.v201310242005-887826)(如果您使用的是 Eclipse)
The first 2 can be updated through the SDK Manager. The ADT Plugin can be updated through the Eclipse update manager (Help -> Check for Updates).
前 2 个可以通过 SDK 管理器更新。ADT 插件可以通过 Eclipse 更新管理器进行更新(帮助 -> 检查更新)。
Edit
编辑
There isn't any special order to make the update. However, ADT Plugin and Android SDK Tools must have the same version. In this case, 22.3 is today's last version (1st of December 2013).
没有任何特殊的命令来进行更新。但是,ADT Plugin 和 Android SDK Tools 必须具有相同的版本。在这种情况下,22.3 是今天的最后一个版本(2013 年 12 月 1 日)。
回答by techloris_109
In the SDK manager check the extrascheckbox and if only 2 options under the same appear like android support liband Emulator acceleratorcheck them also.Then check toolsand under that check only android sdk toolsand android sdk platform tools. Install the checked packages. after that again, reload your SDK manager to see Google Play services appear under the extras. WORKED FOR ME!
在 SDK 管理器中检查附加复选框,如果只有 2 个选项出现在同一个选项下,比如android support lib和EmulatorAccelerator 也检查它们。然后检查工具,在该选项下只检查android sdk 工具和android sdk 平台工具。安装已检查的软件包。再次之后,重新加载您的 SDK 管理器以查看 Google Play 服务出现在附加项下。为我工作!
回答by oabarca
Try launching the SDK Manager by double-clicking the executable(in my case found at C:\DownloadPath\adt-bundle-windows-x86_64-20140321\SDK Manager.exe) rather than launching it from Eclipse !!
尝试通过双击可执行文件(在我的例子中在 C:\DownloadPath\adt-bundle-windows-x86_64-20140321\SDK Manager.exe 中找到)而不是从 Eclipse 启动它来启动 SDK 管理器!