本文介绍了构建gradle时出现此错误错误:执行任务':app:processDebugResources'失败。 >没有奴隶过程来处理工作,中止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误:执行任务':app:processDebugResources'失败。


$ b p

Build.gradle

  apply plugin:'com.android.application'android {
compileSdkVersion 26
buildToolsVersion26.0.2
defaultConfig {
applicationIdcom.colorball.madness
minSdkVersion 14
targetSdkVersion 26
multiDexEnabled true
ndk {
moduleNameplayer_shared
$ b buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.txt'
} }}依赖项{
compile'c​​om.google.android.gms:play-services:+'
编译文件('libs / dagger-1.2.2.jar')
编译文件'libs / javax.inject-1.jar')
编译文件('libs / nineoldandroids-2.4.0.jar')
编译文件('lib s / PTAdRevMob.jar')
compile'c​​om.android.support:appcompat-v7:26.1.0'
compile'c​​om.android.support:multidex:1.0.1'
compile文件('libs / support-v4-19.0.1.jar')}


解决方案

这个帖子在和我有完全相同的问题。 (尽管收缩= false,minify = false,invalidate cache,错误并未进入)。

解决此问题的简单解决方案是关闭android studio&重新启动它。不确定为什么无效缓存和重启失败。但似乎Android正在成为新的MSWindows ..(我在论坛上找到了1.5个小时,并试图修复这个错误..最终它变成了一个Windows技巧。)



希望这个古老的把戏能帮助别人。

I have got this Error while building grade

Build.gradle

 apply plugin: 'com.android.application' android {
    compileSdkVersion 26
    buildToolsVersion "26.0.2"
    defaultConfig {
        applicationId "com.colorball.madness"
        minSdkVersion 14
        targetSdkVersion 26
        multiDexEnabled true
        ndk {
            moduleName "player_shared"
        }}
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
        } } }dependencies {
    compile 'com.google.android.gms:play-services:+'
    compile files('libs/dagger-1.2.2.jar')
    compile files('libs/javax.inject-1.jar')
    compile files('libs/nineoldandroids-2.4.0.jar')
    compile files('libs/PTAdRevMob.jar')
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile 'com.android.support:multidex:1.0.1'
    compile files('libs/support-v4-19.0.1.jar')}
解决方案

This thread was mentioned in No slave process to process jobs, aborting android studio 3.0.1 and I had exact same issue. (Error was not going in-spite of shrink=false, minify=false, invalidte cache).

Simple solution which solved the issue was close the android studio & relaunch it. Not sure why "invalidate cache & restart" failed. But seems that Android is becoming new MSWindows.. (I lost 1.5 hours in finding on forums & trying to fix the error.. Eventually it turned out to be a windows trick.)

Hope this age old trick will help somebody..

这篇关于构建gradle时出现此错误错误:执行任务':app:processDebugResources'失败。 >没有奴隶过程来处理工作,中止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 16:04