Error:Execution failed for task ‘:app:dexDebug’. 的原因和解决办法
来源:互联网 发布:网络弊大于利四辩总结 编辑:程序博客网 时间:2024/05/16 16:11
今天在编译程序的时候出现了个错误,错误日志如下:
Error:Execution failed for task ‘:app:dexDebug’. > com.Android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘........(包路径名)” finished with non-zero exit value 2。
重点在log的后半部分finished with non-zero exit value 2.很明显,这里表明了有重复的内容存在,后来检查jar包,如果有的话,你删除掉即可,但是很大概率你会发现没有重复的jar包啊.问题就在这里.我们平时在引用一个第三方jar包的时候应该先看看这个工程是否引入了其他jar包,很明显我们碰上的基本就是这样一种情况.但是还有一种情况,系统包的版本原因,为此你需要将版本统一就好了。
比如我开始这里
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.1.0' compile 'com.android.support:recyclerview-v7:23.1.0'}这里有两个v7包,你如果两个版本不一致的话,就会出现上面的错误。
1 0
- Error:Execution failed for task ‘:app:dexDebug’. 的原因和解决办法
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:dexDebug'.
- android studio Error:Execution failed for task ':app:dexDebug'.解决
- Android Studio: Error:Execution failed for task ':app:dexDebug'
- Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':dexDebug'
- Error:Execution failed for task ':app:processDebugResources'. 的解决办法
- Error:Execution failed for task ':app:processDebugResources'. 的解决办法
- Aandroid:Error:Execution failed for task ':app:processDebugResources'. 的解决办法
- Execution failed for task ': :dexDebug'
- Execution failed for task ':dexDebug'
- Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 2
- Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: o
- Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException
- Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.ProcessException:
- Android Studio 报错 Error:Execution failed for task ':app:dexDebug'。support-v7 Theme.AppCompat.Light
- 时间复杂度和空间复杂度详解
- Windows网络编程(基础篇1)
- JDBC流程分析
- 代码笔记:caffereid利用训练好的模型提取特征
- ansible playbook API得到任务执行返回结果
- Error:Execution failed for task ‘:app:dexDebug’. 的原因和解决办法
- mknod命令
- H.264编码四种画质级别
- C/C++——排序
- HDOJ1874-畅通工程续
- 百度富文本编辑器引入问题
- poi操作excel导出是否修改模板文件内容的问题
- C#读取excel数据
- 相反数