Android 任务';的执行失败:app:mergeDebugResources';

Android 任务';的执行失败:app:mergeDebugResources';,android,Android,错误:任务“:app:mergeDebugResources”的执行失败 错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException: 错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException: 渐变控制台输出: Executing tasks: [:a

错误:任务“:app:mergeDebugResources”的执行失败

错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException: 错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:

渐变控制台输出:

Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar, :app:prepareDebugUnitTestDependencies]

Configuration on demand is an incubating feature.
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2510Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72510Library UP-TO-DATE
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2510Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2510Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2510Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2510Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2510Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42510Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2510Library UP-TO-DATE
:app:prepareComAndroidVolleyVolley100Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
Error: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: 
:app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.
  • 出了什么问题: 任务“:app:mergeDebugResources”的执行失败

    错误:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:

  • 尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出

构建失败

谁能帮我修一下这个。我是android新手:(



到目前为止,我已经尝试了以下步骤来解决此问题。仍然没有任何帮助。
1) 清洁作业
2) 重建项目
3) 文件>无效缓存/重新启动

格雷德尔先生
这个问题现在已经解决了。由于图像文件的原因引发了错误。我已将JPG图像的扩展名更改为PNG,而不使用任何编辑器。由于这个原因,android studio开始抛出错误。感谢所有试图帮助我的人。如果有人需要对此进行更多澄清,请发表评论。

这似乎是在某些Java线程中获取锁的一个错误。我最近在我的Windows7电脑上看到了这一点。我成功地运行了任务管理器,然后终止了java.exe进程。如果我再试一次,构建似乎工作正常。

错误是因为保存在可绘图文件夹中的文件名不能大写。重命名文件并将所有内容保留为小写。

不要将可绘制图像保存为大写,它应该是png而不是jpg,否则会引发错误:任务执行失败:app:mergeDebugResources'

请添加你的应用程序
build.gradle
。我已经添加了build.gradley你使用了一个不推荐使用的截击库。试着使用
compile'com.android.volley:volley:1.0.0'
Btw,build.gradle是你的完整版本吗?如果只使用3-4库,则不需要启用多索引。因此,您可以使用
multiDexEnabled false
将multidex设置为false,我使用了compile'com.android.volley:volley:1.0.0',仍然没有帮助,我面临同样的问题。它没有解决。我没有对任何可提取的数据进行任何更改。
apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.theaquarious.myfavapp"
        minSdkVersion 14
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:25.1.0'
    testCompile 'junit:junit:4.12'
    compile 'com.mcxiaoke.volley:library:1.0.19'
}