Android Studio找不到与come.google.maps匹配的任何版本

时间:2014-08-14 08:07:12

标签: android gradle maps

我的gradle似乎在抱怨Could not find any version that matches com.google.maps.android:android-maps-utils:+

<强烈>摇篮:

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.11.+'
    }
}
apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion '19.1.0'
    lintOptions {
        abortOnError false
    }
    defaultConfig {
        minSdkVersion 11
        targetSdkVersion 19
    }
    signingConfigs {
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
    productFlavors {
    }
}
dependencies {
    compile 'com.google.android.gms:play-services:4.+'
    compile 'com.android.support:support-v4:19.1.+'
    compile 'com.google.maps.android:android-maps-utils:+'
    compile project(':libraries:facebook')
    compile files('libs/YouTubeAndroidPlayerApi.jar')
    compile files('libs/libGoogleAnalyticsServices.jar')
    compile files('libs/svg-android.jar')
}

1 个答案:

答案 0 :(得分:0)

你没有为你的项目声明一个存储库,只是为了buildcript的东西。

尝试添加第一级存储库块

repositories {
    jcenter()
}