基本上是标题。在我的代码gradle中,这里的网站:http://developer.android.com/google/play-services/setup.html告诉我把它放在gradle文件中
compile 'com.google.android.gms:play-services:7.0.0'
但是,这不是我的应用程序的有效解决方案。我收到错误: 错误:配置项目':app'时出现问题。
无法解析配置':app:_debugCompile'的所有依赖项。 找不到com.android.support:support-v4:22.0.0。 在以下位置搜索: https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / android / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.pom file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / android / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.aar file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / google / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.pom file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / google / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.aar 要求: GridGame:app:unspecified> com.android.support:appcompat-v7:21.0.3 找不到com.android.support:support-v4:22.0.0。 在以下位置搜索: https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.pom https://jcenter.bintray.com/com/android/support/support-v4/22.0.0/support-v4-22.0.0.aar file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / android / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.pom file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / android / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.aar file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / google / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.pom file:/ C:/ Users / Ryan Folz / AppData / Local / Android / sdk / extras / google / m2repository / com / android / support / support-v4 / 22.0.0 / support-v4-22.0.0.aar 要求: GridGame:app:unspecified> com.google.android.gms:play-services:7.0.0> com.google.android.gms:播放服务基:7.0.0
我不知道从这里做什么开始。
任何帮助都会很精彩:)
答案 0 :(得分:0)
您可以通过转到此路径来检查已安装的版本:%appdata%\..\Local\Android\sdk\extras\google\m2repository\com\google\android\gms\play-services
并检查其中的版本文件夹。