BUG Error:Execution failed for task ':app:dexDebug'.
Error:Execution failed for task ':app:dexDebug'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_66\bin\java.exe'' finished with non-zero exit value 2
想弄一下google地图,然后,直接通过android studio来生成了这个project。但是,运行的时候出现了以上错误。
找了一下资料。
http://stackoverflow.com/questions/28917696/errorexecution-failed-for-task-appdexdebug-com-android-ide-common-process
原因是以下:
It seems you have a jar file or a lib appearing multiple times.
So, remove the .jar file from the lib folder then:
Build
> Rebuild
翻译过来大概是:
就是说jar文件或者lib文件出现了多次。
所以在把lib中对应的.jar文件移除就可以了。然后再rebuild
BUT!!人生最厉害就是这个BUT了。
作为初学者,其实不懂什么叫.jar,更不知道它在哪。
还好我有另外一个解决办法。
I had the same problem error that is shown, i solve it by adding
defaultConfig { // Enabling multidex support.multiDexEnabled true
}
I had this problem cause i exceeded the 65K methods dex limit imposed by Android i used so many libraries
在Gradle Scripts中
build.gradle(Module:app)文件里,
找到defaultConfig,在里面添加
multiDexEnabled true 也就是下面这样。
defaultConfig {
multiDexEnabled true } 然后再找了一下multiDexEnabled的作用是什么。然后就找到了,造成以上问题的原因。应用中的Dex 文件方法数超过了最大值65536的上限,简单来说,应用爆棚了. 要想详细了解一下,可以看以下博客链接。作为初学者的我就不看了。主要是因为懒时之沙: http://blog.csdn.net/t12x3456 (来自时之沙的csdn博客)
http://blog.csdn.net/t12x3456/article/details/40837287
转载于:https://www.cnblogs.com/kuangzhuaikuxuandiaozhatian/p/5728534.html
BUG Error:Execution failed for task ':app:dexDebug'.相关推荐
- Error:Execution failed for task ':app:dexDebug'. com.android.ide.common.process.ProcessException
异常Log: Error:Execution failed for task ':app:dexDebug'. > com.android.ide.common.process.Process ...
- android dex2oatd e,解決android項目Error:Execution failed for task ':app:dexDebug'.ebug'錯誤
先上錯誤信息:Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessEx ...
- 完美解决Error:Execution failed for task ':APP:transformClassesWithDexForDebug'...问题
今天下载一个demo运行出现问题,错误如下图 我的问题是JDK 1.8 版本问题问题,我吧1.8改成1.7运行成功 这个实在app下面的build.gradle 相信大伙在Android开发过程中都避 ...
- 安卓中运行报错Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决
在androidstuio中运行我的未完项目,报错: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. & ...
- Error:Execution failed for task ':myapp:dexDebug'. com.android.ide.common.process.ProcessExcepti
错误如题所示:Error:Execution failed for task ':myapp:dexDebug'. com.android.ide.common.process.ProcessExce ...
- 解决方案:Error:Execution failed for task ‘:app:compileDebugAidl‘. > aidl is missing
解决方案:Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 参考文章: (1)解决方案:Err ...
- 安卓开发遇到Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
问题如下: Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api. ...
- Error:Execution failed for task ':app:clean'.
运行时出现 Error:Execution failed for task ':app:clean'. 错误,Builld->Clean Project即可. 转载于:https://www.c ...
- Error:Execution failed for task ':app:transformClassesWithDexForDebug'解决记录
3个错误non-zero exit value 1: non-zero exit value 2: non-zero exit value 3(一下方法亲测好用) Error:Execution fa ...
- 【Android】Error:Execution failed for task ':app:lint'
详细信息如下: Error:Execution failed for task ':app:lint'. > Lint found errors in the project; aborting ...
最新文章
- python长度分割文本_python 按照固定长度分割字符串的方法小结
- Python中乐高积木——函数
- 操作系统 —— 内存管理
- linux系统计算从1加到100之和思路风暴
- 直播丨2020年全国首场12c OCM直考揭秘
- java与freemarker中map的遍历
- python水仙花数的代码_Python水仙花数的编程代码写法
- Android仿人人客户端(v5.7.1)——个人主页(三)
- python计算等额本息还款房贷_一个简单的房贷计算器(等额本息)
- 【博学谷学习记录】超强总结,用心分享 | JavaString类知识要点总结
- Python操作json文件
- python:defaultdict
- 这个充电宝不仅支持无线充,关键还小
- 【整理】学习Android Studio时遇到的错误及解决方法(持续更新)
- 谷歌广告投放,谷歌广告怎么投放?
- php面向过程求圆 三角形 长方形计算,求,圆,三角形,长方形,梯形的面积,周长公式...
- 解决ios下的微信页面背景音乐无法自动播放问题
- 《Java并发编程的艺术》读后笔记-Java中的并发工具类(第八章)
- Redis批量删除Key的三种方式(linux和windows环境下都有)
- C语言将华氏温度转为摄氏度
热门文章
- 区块链 什么是RLP编码
- FISCO BCOS Solidity 智能合约 批量插入新增数据
- 微信小程序云开发教程-小程序在云开发下的运作模式
- Thinkphp 实现动态include
- MATLAB入门教程之MATLAB的基本知识
- fullgc多久一次正常_多久排便一次算正常?提醒:出现3种情况,可能是胃肠“生病”了...
- 基于SSM的作业管理(在线学习)系统
- 直线度误差 matlab,基于MATLAB的直线度误差数据处理
- 阶段3 2.Spring_02.程序间耦合_5 编写工厂类和配置文件
- 阶段1 语言基础+高级_1-3-Java语言高级_08-JDK8新特性_第1节 常用函数接口_11_常用的函数式接口_Consumer接口练习...