Execution failed for task ': :dexDebug'
来源:互联网 发布:mac可以远程控制吗 编辑:程序博客网 时间:2024/05/25 13:34
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
* Try:
* What went wrong:
Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.7.0_75\bin\java.exe'' finished with non-zero exit value 2
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
在用Android Studio做开发的时候难免会遇到这个错误,那么如何去解决这个问题哪?
重点在log的后半部分finished with non-zero exit value 2.
很明显,这里表明了有重复的内容存在,后来检查jar包,发现没有重复的jar啊.问题就在这里.
删除依赖项目的support-v4就可以成功编译并运行呢!
切记一定要把引用的包删除,否则运行项目的时候还是会报错!
0 0
- Execution failed for task ': :dexDebug'
- Execution failed for task ':dexDebug'
- Error:Execution failed for task ':app:dexDebug'.
- 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 ':dexDebug'
- Execution failed for task ':dexDebug' Android Studio 编译失败
- android studio Error:Execution failed for task ':app:dexDebug'.解决
- Android Studio: Error:Execution failed for task ':app:dexDebug'
- AndroidStudio使用出错:Execution failed for task "app:dexDebug"的解决
- Error:Execution failed for task ': :dexDebug'. > com.android.ide.common.process.ProcessException: or
- 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 ':myapp:dexDebug'. com.android.ide.common.process.ProcessException:
- 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
- C++/C笔试面试题目大大的集合
- php中查询mysql 如何在WHERE meta_id IN 中用数组
- GridView用CSS设定样式
- 通过分析 JDK 源代码研究 TreeMap 红黑树算法实现
- Cisco 中line密码的几点理解
- Execution failed for task ': :dexDebug'
- LeetCode Search for a Range
- android ant 多渠道打包
- 【Extjs】上传文件
- 进程、线程同步互斥学习 —— 信号量
- require.js的用法
- 计算机视觉(ComputerVision, CV)相关领域的网站链接
- Visual Studio查找高亮效果设置
- 《Linux内核设计与实现》读书笔记(十二)- 内存管理