Android的工作室 - processDebugResources失败 [英] Android Studio - processDebugResources failed

查看:140
本文介绍了Android的工作室 - processDebugResources失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我试图建立在我的Andr​​oid Studio项目,但该项目已被加载或被执行每一次,我碰到下面的错误。我不知道如何解决这个问题?

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

这是我的build.gradle

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'])
}

任何人有适合我的解决方案? :/请记住,我是一个初学者,不知道很多关于Android Studio或摇篮。

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

推荐答案

嗯,说实话:我固定它是做一个系统恢复后,重新安装的Andr​​oid工作室的方式。 我的病毒扫描程序被中断gradle.build,导致它失败每次。

Well, honestly: the way I fixed it was by reinstalling Android Studio after doing a System Recovery. My virus scanner was interrupting the gradle.build, causing it to fail every time.

所以,我做了一个系统恢复到这种地步,我没有装很多东西,再重新安装Android的工作室它完美地工作。

So I did a System Recovery to the point where I didn't install a lot of stuff, reinstalled Android Studio again and it worked perfectly.

所以没有确切原因这一点,只是一些低劣的东西与病毒扫描。

So there's no exact cause to this, just some shitty stuff with virus scanners.

如果任何对你还是有这个问题,我认为这是由于很多不同的原因。 祝你好运固定你的!

If any on you still have this, I think it's due to a lot of different reasons. Good luck fixing yours!

这篇关于Android的工作室 - processDebugResources失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆