Android Studio - processDebugResources 失败 [英] Android Studio - processDebugResources failed

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

问题描述

所以我试图在 Android 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:UsersJorreAppDataLocalAndroidandroid-studio1sdkuild-toolsandroid-        4.4.2aapt.exe package -f --no-crunch -I C:UsersJorreAppDataLocalAndroidandroid-studio1sdkplatformsandroid-19android.jar -M C:UsersJorreDesktopAndroidOefeningoefening1uildmanifestsdebugAndroidManifest.xml -S C:UsersJorreDesktopAndroidOefeningoefening1uild
esalldebug -A C:UsersJorreDesktopAndroidOefeningoefening1uildassetsdebug -m -J C:UsersJorreDesktopAndroidOefeningoefening1uildsource
debug -F C:UsersJorreDesktopAndroidOefeningoefening1uildlibsoefening1-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 或 Gradle 不太了解..

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

推荐答案

好吧,老实说:我修复它的方法是在执行系统恢复后重新安装 Android Studio.我的病毒扫描程序中断了 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 Studio,它运行得很好.

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 Studio - processDebugResources 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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