大家好:我正在尝试将程序从Eclipse带到Android Studio。这样做我遇到了许多错误,我已经使用Stackoverflow和我的直觉帮助解决了这些错误。但是,我没有能够解决这个问题,因为我看到我的程序没有重复,因为链接已经声明要查找,我不知道在哪里看。
完整的错误是
Error:Execution failed for task ':tourismApp:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
研究和阅读将我带到了这个环节 Java finished with non-zero exit value 2 - Android Gradle
然而没有任何效果,甚至没有多指数真实。
如果我的情况有点独特,如果有人能告诉我的话。
Project Gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
applicationId "com.iziss.tourismapp"
minSdkVersion 15
targetSdkVersion 23
}
configurations {
all*.exclude group: 'com.android.support', module: 'support-v7'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.0.0'
compile project(':facebook')
compile 'com.google.android.gms:play-services:7.5.0'
// compile files('libs/httpclient-4.0.1.jar')
// compile files('libs/httpmime-4.2.2.jar')
// compile files('libs/signpost-commonshttp4-1.2.1.1.jar')
// compile files('libs/signpost-core-1.2.1.1.jar')
// compile files('libs/twitter4j-core-4.0.4.jar')
// compile files('libs/universal-image-loader-1.2.1.jar')
compile "org.apache.httpcomponents:httpcore:4.3.2"
compile fileTree(dir: 'libs', include: ['*.jar'])
}
Facebook Gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.0"
defaultConfig {
minSdkVersion 9
targetSdkVersion 23
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.1.1'
// compile files('libs/bolts-android-1.1.2.jar')
compile 'com.android.support:support-annotations:+'
compile fileTree(dir: 'libs', include: ['*.jar'])
}