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

前端之家收集整理的这篇文章主要介绍了java – 错误:任务执行失败,以非零退出值1结束前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

Error:Execution Failed for task ‘:onyxenrollwizardsampleapp:processDebugResources’.
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘C:\Android\sdk\build-tools\23.0.2\aapt.exe” finished with non-zero exit value 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'
}

解决方法

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

猜你在找的Java相关文章