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:

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