8

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

Here is my Gradle file. Kindly help me out

 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'
}
Muhammad Abdullah
  • 271
  • 1
  • 2
  • 15

6 Answers6

6

Go to Build menu - Clear Project, and Rebuild Project, It worked for me..

  • 2
    This worked for me, except for a small clarification, it is "Clean Project", not "Clear Project". – Bourne Dec 29 '15 at 21:56
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'
}
Rajesh
  • 2,558
  • 17
  • 25
0

This is due to incorrectly configured AndroidManifest. For example, the

         package="com.mypackage.myname"

may be incorrect, or it doesn't match the applicationId in build.gradle:

        applicationId "com.mypackage.myname"

Make sure you fix those.

IgorGanapolsky
  • 24,768
  • 21
  • 112
  • 140
0

Sometimes it happens after updating. Next 2 steps may help:

From "Build" menu.

Build -> Clean Project

Build -> Rebuild Project
Andrew
  • 34,285
  • 10
  • 136
  • 109
0

Check that that sdk version 23 is installed or not.

humna
  • 171
  • 5
0

I caused this error because the code below

<meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />

in the AndroidMainfest.xml file and i remove this code will work fine.

Aditya Vyas-Lakhan
  • 13,007
  • 15
  • 58
  • 92
洪春华
  • 1
  • 2