1

Hey guys I've installed the SDK for google play services and have added the dependancies however I still get the error:

Failed to find: com.google.android.gms:play-services-maps:6.5+

Is there something I'm missing?

Heres my dependencies file:

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

android {
compileSdkVersion 21
buildToolsVersion "19.1.0"

defaultConfig {
    applicationId "team08.httpapp"
    minSdkVersion 17
    targetSdkVersion 21
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        runProguard false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.google.android.gms:play-services:6.5.+'
compile 'com.google.android.gms:play-services-maps:6.5.+'
}
user2311710
  • 69
  • 1
  • 8

2 Answers2

0

Make sure the "Google Repository" is installed in your SDK manager.

Scott Barta
  • 79,344
  • 24
  • 180
  • 163
-1

Based on this Google blog post: http://android-developers.blogspot.co.at/2014/12/google-play-services-and-dex-method.html

I would remove compile 'com.google.android.gms:play-services:6.5.+' and change the other line to compile 'com.google.android.gms:play-services-maps:6.5.87'.

Joel
  • 14,861
  • 3
  • 27
  • 31