已安装Google Play服务,但文件夹google_play_services_lib不存在 [英] Google play services installed but folder google_play_services_lib not exists

查看:581
本文介绍了已安装Google Play服务,但文件夹google_play_services_lib不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个愚蠢的问题,但是我无法解决我的问题((<< 我的用户是Android SDK Manager修订版25.1.6
已安装Google Play服务(存在Sdk \ extras \ google \ google_play_services文件夹),但SDK文件夹中不存在google_play_services_lib文件夹
我尝试重新安装播放服务,但结果相同
在google_play_services文件夹中,仅文档,示例和package.xml source.properties
也许有人对此问题有解决方案? 谢谢

I have stupid question, but I can't resolve my problem ((
I'm user Android SDK manager revision 25.1.6
Google play services installed (folder Sdk\extras\google\google_play_services exists), but google_play_services_lib folder not exists in SDK folder
I tried reinstall play services but with the same result
In folder google_play_services only docs, samples and package.xml source.properties
maybe somebody has solution for this problem? Thank you

-编辑 在android studio中创建简单的项目
添加行"compile'c​​om.google.android.gms:play-services:8.4.0'"
项目构建成功,但仍然找不到google_play_services_lib文件夹

-- edit create simple project in android studio
add line "compile 'com.google.android.gms:play-services:8.4.0'"
project build successfully but I still can't found google_play_services_lib folder

我需要此文件夹将其包含到我的Qt项目中

I need this folder to include to my Qt project

推荐答案

google_play_services-lib是使用Android SDK管理器安装的.它位于附加部分的"Google Play服务"下.

google_play_services-lib is installed using the Android SDK manager. It is under the extras section called "Google Play Services".

如果可以避免的话,您真的应该尝试不再使用google_play_services-lib.它包含整个Google Play服务的客户端库,该库很大,在大多数情况下,您的应用程序仅使用客户端SDK的一小部分.

You really should try not to use the google_play_services-lib any longer if you can avoid it. It contains the entire client library for google play services which is very large, and in most cases, your application is only using a small portion of the client SDK.

对于非分级项目,更好的解决方案是扩展所需的.aar文件(您可以将其重命名为.zip文件,也可以使用jar xf <aarfile>进行扩展.

A better solution for your non-gradle project is to expand the .aar files you need (you can rename them .zip files or use jar xf <aarfile> to expand them.

您可以在extras/google/m2repository目录中找到它们,按包名称进行细分.在与.aar文件相同的目录中,有一个.pom文件,它是XML文件.该文件的末尾有一个依赖关系列表-您还需要扩展这些依赖关系.

You can find them in the extras/google/m2repository directory, broken down by package name. In the same directory as the .aar file, there is a .pom file which is an XML file. At the end of that file there is a list of dependencies - you'll need to expand those as well.

通过这种方式,您的应用程序将只有最小的依赖项集.

This way you will have only the smallest set of dependencies for your app.

这篇关于已安装Google Play服务,但文件夹google_play_services_lib不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆