android - Gradle aapt.exe error -


    buildscript {     repositories {         mavencentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:+'         classpath 'com.jakewharton.hugo:hugo-plugin:1.1.0' } } apply plugin: 'com.android.application' apply plugin: 'hugo' configurations {     preprocess }   android {     compilesdkversion 21     buildtoolsversion "21.0.2"      defaultconfig {         applicationid "uz.taxiapp.android"         minsdkversion 14         targetsdkversion 21         versioncode 1         versionname "1.0"     }      buildtypes {         release {             minifyenabled false             proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.txt'         }     }      // make sure lint errors don't fail build lint not work android gradle plugin     lintoptions {         abortonerror false     }      compileoptions {         sourcecompatibility javaversion.version_1_7         targetcompatibility javaversion.version_1_7     } }dependencies {     compile filetree(dir: 'libs', include: ['*.jar'])     compile "com.android.support:support-v4:$depandroidsupportversion"     compile "com.android.support:support-v13:20.0.+"     compile "com.android.support:appcompat-v7:$depandroidsupportversion"     compile 'com.google.android.gms:play-services:6+'     compile "com.android.support:recyclerview-v7:$depandroidsupportversion"      compile "com.j256.ormlite:ormlite-android:$depormliteversion"      compile "com.google.code.gson:gson:$depgsonversion"      preprocess "com.squareup.dagger:dagger-compiler:$depdaggerversion"     compile "com.squareup.dagger:dagger:$depdaggerversion"     compile "com.squareup.picasso:picasso:$deppicassoversion"     compile "com.squareup:otto:$depottoversion"     compile "com.squareup.retrofit:retrofit:$depretrofitversion"      preprocess "com.jakewharton:butterknife:$depbutterknifeversion"     compile "com.jakewharton:butterknife:$depbutterknifeversion"     compile "com.jakewharton.timber:timber:$deptimberversion"      compile project (':jobqueue')      compile "com.jpardogo.googleprogressbar:library:$depgoogleprogressbarversion"     compile 'com.iangclifton.android:floatlabel:1.0.1'} android.applicationvariants.all { variant ->     //where place generated code     variant.ext.set("gen_${variant.dirname}", file("${project.builddir}/source/gen/${variant.dirname}"))      //do actual preprocessor things     variant.javacompile.dofirst {         file out = variant.ext.get("gen_${variant.dirname}")         out.mkdirs()         variant.javacompile.options.compilerargs += [                 '-processorpath', configurations.preprocess.getaspath(),                 '-s', out         ]     } } 

this gradle code returns error

error:execution failed task ':app:processdebugresources'. 

com.android.ide.common.process.processexception: org.gradle.process.internal.execexception: process 'command 'c:\users\Алексей\appdata\local\android\sdk\build-tools\21.0.2\aapt.exe'' finished non-zero exit value 1

if have installed java 8, uninstall install java 7 updating environment variables.


Comments