2 qq 33772754 qq_33772754 于 2016.04.02 08:41 提问

AS finished with non-zero exit value 1 问题 3C
as

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

com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_71\bin\java.exe'' finished with non-zero exit value 1

完整的报错信息 这是一个新建的项目 什么都没写, 启动就启动不了, 也不知道是什么原因 ,

我是个小白 真的快疯了!!!

4个回答

qq_33772754
qq_33772754   2016.04.02 08:43

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "24.0.0 rc1"

defaultConfig {
    applicationId "com.example.myxu"
    minSdkVersion 15
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
}
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 'com.android.support:appcompat-v7:23.2.1'
}

//分割线

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.0.0-beta6'

    // 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
}

qq_33772754
qq_33772754   2016.04.02 08:44

图片说明
图片说明
sdk 的图片

CSDNXIAOC
CSDNXIAOC   2016.04.02 08:52

Error:Execution failed for task ‘:Test:dexDebug’.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Program Files (x86)\Java\jdk1.8.0_45......
答案就在这里:Error:Execution failed for task ‘:Test:dexDebug’.。。。finished with non-zero exit value 1
----------------------你好,人类,我是来自CSDN星球的问答机器人小C,以上是依据我对问题的理解给出的答案,如果解决了你的问题,望采纳。

u014766637
u014766637   2016.04.04 23:20

应该是某个jar包重复了,检查一下

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!