Google Play地图,找不到com.android.support:support-v4:22.2.0

时间:2015-08-29 20:01:23

标签: android google-maps android-studio

我的谷歌地图没有设置在我的Android工作室!我在这里检查了许多解决方案,并且已经跟踪了每个解决方案,但仍然没有运气。

主要来自导致问题的googleplay服务和存储库依赖项。我尝试了很多解决方案,但它没有用。 我将发布错误日志。

  

错误:配置项目':app'时出现问题。   无法解析配置':app:_debugCompile'的所有依赖项。   找不到com.android.support:support-v4:22.2.0。        在以下位置搜索:            https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom            https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar            file:/ P:/ Software / Android SDK / extras / android / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.pom            file:/ P:/ Software / Android SDK / extras / android / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.aar            file:/ P:/ Software / Android SDK / extras / google / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.pom            file:/ P:/ Software / Android SDK / extras / google / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.aar        要求:            demomap:app:unspecified> com.android.support:appcompat-v7:21.0.3   找不到com.android.support:support-v4:22.2.0。        在以下位置搜索:            https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.pom            https://jcenter.bintray.com/com/android/support/support-v4/22.2.0/support-v4-22.2.0.aar            file:/ P:/ Software / Android SDK / extras / android / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.pom            file:/ P:/ Software / Android SDK / extras / android / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.aar            file:/ P:/ Software / Android SDK / extras / google / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.pom            file:/ P:/ Software / Android SDK / extras / google / m2repository / com / android / support / support-v4 / 22.2.0 / support-v4-22.2.0.aar        要求:            demomap:app:unspecified> com.google.android.gms:play-services:7.8.0> com.google.android.gms:播放服务基地:7.8.0   找不到com.android.support:mediarouter-v7:22.2.0。        在以下位置搜索:            https://jcenter.bintray.com/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.pom            https://jcenter.bintray.com/com/android/support/mediarouter-v7/22.2.0/mediarouter-v7-22.2.0.aar            file:/ P:/ Software / Android SDK / extras / android / m2repository / com / android / support / mediarouter-v7 / 22.2.0 / mediarouter-v7-22.2.0.pom            文件:/ P:/ Software / Android SDK / extras / android / m2repository / com / android / support / mediarouter-v7 / 22.2.0 / mediarouter-v7-22.2.0.aar            文件:/ P:/ Software / Android SDK / extras / google / m2repository / com / android / support / mediarouter-v7 / 22.2.0 / mediarouter-v7-22.2.0.pom            文件:/ P:/ Software / Android SDK / extras / google / m2repository / com / android / support / mediarouter-v7 / 22.2.0 / mediarouter-v7-22.2.0.aar        要求:            demomap:app:unspecified> com.google.android.gms:play-services:7.8.0> com.google.android.gms:播放服务铸:7.8.0

内建摇篮:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.example.sonyvaio.demomap"
        minSdkVersion 16
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.google.android.gms:play-services:7.8.0'
}

1 个答案:

答案 0 :(得分:2)

你的build.gradle是正确的。
只需从Android SDK Manager安装这两个Extras

即可

android sdk manager