无法解决com.google.android.gms:播放服务地点:7.5.0所依赖的库,但是是一个jar [英] Not Able To Resolve com.google.android.gms:play-services-location:7.5.0 depends on libraries but is a jar

查看:854
本文介绍了无法解决com.google.android.gms:播放服务地点:7.5.0所依赖的库,但是是一个jar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我曾在一个系统中创建一个Android Studio项目,并与同时建设,我不断收到此错误的项目在其他系统中导入
我目前正在与Android SDK中23编译

I had created an Android studio Project in one system and and imported in another system while building the project I am keep on getting this error I am currently compiling with android SDK 23

错误:出现问题的项目配置:应用程序。

Error:A problem occurred configuring project ':app'.

找不到播放服务,location.jar(com.google.android.gms:播放服务定位:7.5.0)。
    搜索在以下位置:
        file:/home/Android/Sdk/extras/google/m2repository/com/google/android/gms/play-services-location/7.5.0/play-services-location-7.5.0.jar

Could not find play-services-location.jar (com.google.android.gms:play-services-location:7.5.0). Searched in the following locations: file:/home/Android/Sdk/extras/google/m2repository/com/google/android/gms/play-services-location/7.5.0/play-services-location-7.5.0.jar

东西试过至今
*添加依赖于模块级
*降级SDK来较低的版本,直到21
*安装谷歌Play业务库

Thing tried so far * Adding dependency in the module level * Downgrading the SDK to lower version till 21 * Installing Google Play Service library

请提示

更新
我想这一点。错误:无法解析:com.google.android.gms:播放服务,附近:8.1.0
安装库和同步项目结果打开文件结果在项目结构对话框显示
    错误:错误:无法解析:com.google.android.gms:播放服务,appindexing:8.1.0
安装库和同步项目结果打开文件结果在项目结构对话框显示
    错误:错误:无法解析:com.google.android.gms:游戏服务游戏:8.1.0
安装库和同步项目结果打开文件结果在项目结构对话框显示
当我点击安装仓库它告诉我错误:
忽​​略未知包过滤超谷歌-m2repository'Warning:包过滤器除去所有的包没有任何安装。
         请考虑尝试没有一个包过滤器再次更新。

Update I tried this as well . Error:Failed to resolve: com.google.android.gms:play-services-nearby:8.1.0 Install Repository and sync project
Open File
Show in Project Structure dialog Error:Error:Failed to resolve: com.google.android.gms:play-services-appindexing:8.1.0 Install Repository and sync project
Open File
Show in Project Structure dialog Error:Error:Failed to resolve: com.google.android.gms:play-services-games:8.1.0 Install Repository and sync project
Open File
Show in Project Structure dialog And when I click on install repositories it tells me Error: "Ignoring unknown package filter 'extra-google-m2repository'Warning: The package filter removed all packages. There is nothing to install. Please consider trying to update again without a package filter."

推荐答案

您需要在应用级在gradle这个文件添加,并应包括你可以在应用程序中使用所有的谷歌播放服务。阅读下面什么都包括了服务的URL中的信息(位置服务是其中之一)。

You need to add in your gradle file at the app level and that should include all the google play services which you can use in your application. Read the information in the URL below on what are the services included (location service is one of them).

apply plugin: 'com.android.application'
...

dependencies {
    compile 'com.google.android.gms:play-services:8.1.0'
}

https://developers.google.com/android/guides/setup

这篇关于无法解决com.google.android.gms:播放服务地点:7.5.0所依赖的库,但是是一个jar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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