Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_51\bin\java.exe'' finished with non-zero exit value 2
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.zumoappname"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
//multiDexEnabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories {
flatDir {
dirs 'aars'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.microsoft.azure:azure-notifications-handler:[email protected]'
compile 'com.google.code.gson:gson:2.3'
compile 'com.google.guava:guava:18.0'
compile 'com.microsoft.azure:azure-mobile-services-android-sdk:2.0.3'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:appcompat-v7:23.1.1'
}
如果我不使用'com',我可以編譯並運行。 google.android.gms:play-services:8.3.0',但這打破了我的應用程序的目的。試過multidexenabled。試圖乾淨和重建。任何意見,將不勝感激?':app:dexDebug'。 gradle失敗'C: Program Files Java jdk1.7.0_51 bin java.exe''以非零退出值結束2
依賴性{ 編譯文件樹(DIR: '庫',包括:[ '的* .jar']) 編譯 'com.microsoft.azure:azure-notifications-handler:[email protected]' 編譯「COM .google.code.gson:gson:2.3' compile'com.google.guava:guava:18.0' compile'com.microsoft.azure:azure-mobile-services-android-sdk:2.0.3' compile 'com.google.android.gms:play-services:8.3.0' compile'com.android.support:appcompat-v7:23.1.1' } –
剛剛在原帖中添加了您的評論。 –
使用./gradlew彙編--info獲取堆棧跟蹤 –