错误:任务执行失败,以非零退出值1结束

Muh*_*lah 7 java android build.gradle android-gradle-plugin

错误:任务':onyxenrollwizardsampleapp:processDebugResources'的执行失败.com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'C:\ Android\sdk\build-tools\23.0.2\aapt.exe''以非完成零退出值1

这是我的Gradle文件.请帮助我

 apply plugin: 'com.android.application'
    android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.example.onyx_enroll_wizard_sample_app"
        minSdkVersion 14
        targetSdkVersion 23
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }

    lintOptions {
        abortOnError false
    }
}

repositories {
    mavenCentral()

    maven {
        url 'http://nexus.diamondfortress.com/nexus/content/repositories/releases'
    }

    maven {
        url 'http://nexus.diamondfortress.com/nexus/content/repositories/snapshots'
    }
}

dependencies {
    compile 'com.android.support:support-v13:23.0.1'
    compile 'com.dft.android:onyx-enroll-wizard:4.1.3'
}
Run Code Online (Sandbox Code Playgroud)

小智 6

转到Build菜单 - Clear Project,Rebuild Project,它对我有用..

  • 这对我有用,除了一个小的澄清,它是"清洁项目",而不是"清除项目". (2认同)

Raj*_*esh 0

apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1" //Just change this from 23.0.2 to 23.0.1

defaultConfig {
    applicationId "com.example.onyx_enroll_wizard_sample_app"
    minSdkVersion 14
    targetSdkVersion 23
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}

lintOptions {
    abortOnError false
}
}

repositories {
mavenCentral()

maven {
    url 'http://nexus.diamondfortress.com/nexus/content/repositories/releases'
}

maven {
    url 'http://nexus.diamondfortress.com/nexus/content/repositories/snapshots'
}
}

dependencies {
compile 'com.android.support:support-v13:23.0.1'
compile 'com.dft.android:onyx-enroll-wizard:4.1.3'
}
Run Code Online (Sandbox Code Playgroud)