1
虽然我搜索了错误消息,但我得到了很多较小的问题,但没有一个能够帮助我。所以我又问了一遍。对我来说,当我添加一个Handler来更新我的用户界面时,会发生这个错误。如果我删除处理程序,将不会有错误。为什么会发生。错误:执行失败的任务':app:transformClassesWithDexForDebug'
com.android.build.api.transform.TransformException:
com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process
'command 'C:\Program Files\Java\jdk1.8.0_60\bin\java.exe''
finished with non-zero exit value 2
检查我的gradle产出。
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.medical.trofii"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile group: 'cz.msebera.android', name: 'httpclient', version: '4.4.1.1'
compile project(':rangeseekbar')
compile project(':library')
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'it.dex.dexmovingimageview:dexmovingimageviewlib:0.1.0'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.github.rahatarmanahmed:circularprogressview:2.4.0'
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'cn.pedant.sweetalert:library:1.3'
compile 'com.mikhaellopez:circularimageview:2.1.1'
}
发表你的'build.gradle'。 –
尝试安装jdk1.7_65,然后在Project Settings中更改您的java sdk。我应该工作 – piotrek1543
@IntelliJAmiya:请检查更新后的问题。 – DKV