Gradle错误':app:dexDebug'

时间:2015-06-16 10:57:22

标签: java android gradle

我有一个依赖:

compile 'com.google.android.gms:play-services:6.1.+'

当我将其更改为更新的依赖项时, 为:

compile 'com.google.android.gms:play-services:7.5.0'

发生以下构建错误:

Error:Execution failed for task ':app:dexDebug'.
  

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程'命令' C:\ Program Files \ Java \ jdk1.7.0_75 \ bin \的java.exe''完成非零退出值2

我的build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "com.dailyspring.rejo.cpray"
        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.google.android.gms:play-services:6.1.+'

  //  compile 'com.google.android.gms:play-services-base:6.5.87'
   // compile 'com.google.android.gms:play-services:6.5.87'
    compile 'com.microsoft.azure:azure-mobile-services-android-sdk:2.0-beta'
    compile(group: 'com.microsoft.azure', name: 'azure-notifications-handler', version: '1.0.1', ext: 'jar')
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
    compile 'in.srain.cube:ultra-ptr:1.0.9@aar'
    compile 'com.microsoft.azure:azure-mobile-services-android-sdk:2.0.2-beta'
    compile 'com.android.support:support-v4:21.0.3'
    compile 'com.google.code.gson:gson:2.2.2'
    compile 'com.google.guava:guava:18.0'
    compile 'com.github.leonardoxh:custom-font:1.2'
    compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2'
    compile 'com.pkmmte.view:circularimageview:1.1'
    compile 'com.wrapp.floatlabelededittext:library:0.0.6'
    compile 'com.github.markushi:circlebutton:1.1'
    compile 'com.github.hoang8f:android-flat-button:fa012e04ef'
    compile 'com.beardedhen:androidbootstrap:+'
    compile 'com.andreabaccega:android-form-edittext:1.1.0@aar'
    compile 'com.github.balysv:material-ripple:v1.0.2'
    compile 'com.github.clans:fab:1.5.0'
    compile 'com.github.futuresimple:android-floating-action-button:1.9.0'
    compile 'com.github.bumptech.glide:glide:3.6.0'
    compile 'com.github.kikoso:AppRate-Android:1.0-RELEASE'
}
repositories {
    mavenCentral()
    maven {
      //  url  "http://dl.bintray.com/microsoftazuremobile/SDK"
        url "https://jitpack.io"

    }

}

1 个答案:

答案 0 :(得分:1)

使用

compile 'com.google.android.gms:play-services:+'

取代:

compile 'com.google.android.gms:play-services:7.5.0'

尝试一次。