Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 2
来源:互联网 发布:淘宝网甩棍多少钱一根 编辑:程序博客网 时间:2024/04/30 10:49
使用Android Studio 遇到报如下的错误
com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2
通过查找确认问题原因:gradle构建过程中出现重复的jar包。
解决方案:
1:如果能直接找到依赖的包那就删除搞定
找不到重复的依赖包或者module,可以尝试一个一个删除自己所引用的jar或者module,如果有报错就返回,没有报错那重复的包就是删除的那个了(比较土的办法)。
2.新遇到的情况
当导入Eclipse的库项目是,特别注意:如果库项目中引用的jar包有和主项目中引用相同的jar时,也会导致org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_45\bin\java.exe'' finished with non-zero exit value 2 错误。
0 0
- Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 2
- Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 3解决
- Error:Execution failed for task ‘:Test:dexDebug’.。。。finished with non-zero exit value 1
- Error:Execution failed for task ':app:processDebugResources'....finished with non-zero exit value 1
- Execution failed for task ':myapp:dexDebug'bin/java'' finished with non-zero exit value 2的解决思路
- Error:Execution failed for task...finished with non-zero exit value 2
- Error:Execution failed for task ':***:compileDebugAidl'.finished with non-zero exit value 3
- Error:Execution failed for task ':app:transformClassesWithDexForMfinished with non-zero exit value 2
- Error:Execution failed for task ':app:transformClassesWithDexForDebug' finished with non-zero exit v
- Error:Execution failed for task jdk1.8.0.25 exit with non zero exit value 2
- Error:Execution failed for task ':inferentdemo:processDebugResources'. finished with non-zero exit v
- Error:Execution failed for ..dk\build-tools\23.0.2\aapt.exe'' finished with non-zero exit value 1错误
- react-native run-android时遇到 app dexDebug……finished with non-zero exit value 2
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:dexDebug'.
- Error:Execution failed for task ':app:dexDebug'.
- ':app:transformClassesWithDexForDebug'.finished with non-zero exit value 2
- studio dexDebug ExecException finished with non-zero exit value 2 grade等问题
- 程序员成长规划
- posix信号量sem_wait死锁解决方法
- SAAJ
- TeamViewer“试用期已到期”解决方法
- SQL 左外连接,右外连接,全连接,内连接
- Error:Execution failed for task ':app:dexDebug'.finished with non-zero exit value 2
- storyboard简单跳转和数据传值
- wifidog http.c&.h分析
- SpringMVC 注解配置
- LeetCode : No11 Container With Most Water
- error C3861: “InitializeCriticalSectionAndSpinCount”: 找不到标识符
- swift知识点小记
- php中的this self parent
- DOS中SET命令的详细用法