Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio - processDebugResources failed

Tags:

android

gradle

So I'm trying to build my project in Android Studio, but each time the project has been loaded or been executed, I get the following error. I have no clue how to fix this ...

Execution failed for task ':oefening1:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:\Users\Jorre\AppData\Local\Android\android-studio1\sdk\build-tools\android-        4.4.2\aapt.exe package -f --no-crunch -I C:\Users\Jorre\AppData\Local\Android\android-studio1\sdk\platforms\android-19\android.jar -M C:\Users\Jorre\Desktop\Android\Oefening\oefening1\build\manifests\debug\AndroidManifest.xml -S C:\Users\Jorre\Desktop\Android\Oefening\oefening1\build\res\all\debug -A C:\Users\Jorre\Desktop\Android\Oefening\oefening1\build\assets\debug -m -J C:\Users\Jorre\Desktop\Android\Oefening\oefening1\build\source\r\debug -F C:\Users\Jorre\Desktop\Android\Oefening\oefening1\build\libs\oefening1-debug.ap_ --debug-mode --custom-package be.verstraetejordy.oefening1
Error Code:    -1073741819

This is my build.gradle

apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.1"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            runProguard false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
}

anyone got a solution for me? :/ Keep in mind that I'm a beginner and don't know much about Android Studio or Gradle ..

like image 503
Jorrex Avatar asked Feb 08 '14 12:02

Jorrex


People also ask

How do I fix Android Resource Link failed?

You may be having this error on your JAVA files because there is one or more XML file with an error. Go through all your XML files and resolve errors, then clean or rebuild the project from the build menu. Start with your most recent edited XML file.


1 Answers

If this is happenning to you after switching to compileSdkVersion 21 make sure you use buildToolsVersion "21.0.2" (or later), not "21.0.1".

like image 121
VM4 Avatar answered Sep 27 '22 18:09

VM4