'com.google.android.gms:play-services-maps:9.4.0'无效

时间:2016-09-08 03:04:07

标签: android google-maps gradle

gms播放服务9.4.0让我的任务执行失败,它就像这样说。

Error:Execution failed for task ':app:processDebugGoogleServices
  

请修改版本冲突,方法是更新google-services插件的版本(https://bintray.com/android/android-tools/com.google.gms.google-services/提供有关最新版本的信息)或将com.google.android.gms版本更新为8.3.0

以下是我如何宣布我的gradle,我无法看到conflict在哪里thaaanks:)

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

repositories {
maven {
    url "https://jitpack.io"
}
}

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
useLibrary 'org.apache.http.legacy'

defaultConfig {
    applicationId "com.example.kun.carkila"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/GenAsync.1.2.jar')
compile files('libs/gson-2.2.4.jar')
compile files('libs/KGJsonConverter.jar')
compile files('libs/MD5Simply.jar')
compile files('libs/PhotoUtil.jar')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.github.amigold.fundapter:library:1.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.github.pinball83:masked-edittext:1.0.3'
compile 'com.android.support:support-v4:23.4.0'
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services-maps:9.4.0'
compile 'com.google.android.gms:play-services-places:9.2.0'
compile 'com.android.support:multidex:1.0.1'

}

模块

buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.0-beta2'
    classpath 'com.google.gms:google-services:1.5.0-beta2'
    classpath 'com.android.tools.build:gradle:2.0.0-alpha6'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
}

allprojects {
repositories {
    jcenter()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}

0 个答案:

没有答案