android failed for task ':app:dexDebug'

问题描述

android failed for task ':app:dexDebug'
我使用SVN更新了项目后出现这个错误,貌似是更新了包,我用的是V7包,别人用的是V4,怎么改可以正常运行呀?最好项目以后更新也不会出现这个问题
Error:Execution failed for task ':app:dexDebug'.

com.android.ide.common.internal.LoggedErrorException: Failed to run command:
C:UsersAdministratorAppDataLocalAndroidsdkbuild-tools21.1.2dx.bat --dex --no-optimize --output D:android-studioexerciseex05svn_androidStuidoappbuildintermediatesdexdebug --input-list=D:android-studioexerciseex05svn_androidStuidoappbuildintermediatestmpdexdebuginputList.txt
Error Code:
2
Output:
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:596)
at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:554)
at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:535)
at com.android.dx.merge.DexMerger.mergeDexes(DexMerger.java:171)
at com.android.dx.merge.DexMerger.merge(DexMerger.java:189)
at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:454)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:303)
at com.android.dx.command.dexer.Main.run(Main.java:246)
at com.android.dx.command.dexer.Main.main(Main.java:215)
at com.android.dx.command.Main.main(Main.java:106)

解决方案

参考以下链接

http://my.oschina.net/deepSprings/blog/371646

解决方案二:
http://bbs.csdn.net/topics/391006536

时间: 2024-08-03 14:45:46

android failed for task ':app:dexDebug'的相关文章

怎么处理-Error:Execution failed for task ':app:dexDebug'

问题描述 Error:Execution failed for task ':app:dexDebug' 解决方案 导的包有重复的.在用Android Studio做开发的时候难免会遇到这个错误,那么如何去解决这个问题哪? 重点在Log的后半部分finished with non-zero exit value 2. 很明显,这里表明了有重复的内容存在,后来检查jar包,发现没有重复的jar啊.问题就在这里. 我们平时在引用一个第三方jar包的时候应该先看看这个工程是否引入了其他jar包,很明显

volley导入后运行项目-Error:Execution failed for task ':app:preDexDebug'

问题描述 Error:Execution failed for task ':app:preDexDebug' Error:com.android.dx.cf.iface.ParseException: class name (com/android/volley/CacheDispatcherTest) does not match path (tests/bin/classes/com/android/volley/CacheDispatcherTest.class) 解决方案 http:/

我的Android进阶之旅------>解决:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

错误描述 今天在Android Studio项目中加入了jackson的开发包,编译运行时候,引发了如下的错误: Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Du

Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing(Android Studio编译错误)

今天下载了一个1.2.1.1版本的Android Studio,使用VPN更新好SDK之后就新建了一个hello world工程测试一下环境,然后就出现以下错误: Error:Execution failed for task ':app:compileDebugAidl'. > aidl is missing 什么情况?全新安装的环境也有错误?Google发布这个工具时没有测试好吗? 没搞过这个工具,一阵搜索得到以下方案: 1.右键工程->Open Module Settings 2.将Bu

Android错误集锦:Error:Execution failed for task ':app:processMockDebugManifest'.

错误描述: Error:Execution failed for task ':app:processMockDebugManifest'. > Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:23:9-36   is also present at [net.qiujuer.common:okhttp:3.0.0] AndroidManifest.

Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details

Android Studio 编译中断....   Error:Execution failed for task ':app:mergeDebugResources'. > Some file crunching failed, see logs for details   错误信息如上:   解决方案: drawable里面的图片格式保存不对,Android studio 当编译资源文件的时候(using AAPT(Android Asset Packaging Tool))会抛出异常, 只

Android Studio导入EaseUI出现app:dexDebug问题

问题描述 Error:Execution failed for task ':app:dexDebug'.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program FilesJavajdk1.8.0_60binjava.exe'' finished with non-zero exit value 2自己的gra

Execution failed for task ':compileDebugAidl'. java.lang.IllegalStateException: aidl is missing

Execution failed for task ':compileDebugAidl'.  java.lang.IllegalStateException: aidl is missing 统一所有的module的build tools版本与compile sdk版本

app:processDebugResources'.

问题描述 app:processDebugResources'. 1C 不知道为什么,在没有编辑"public class SlidingMenu extends HorizontalScrollView"此的代码以前,gradle好没有报错,遍完试运的时候就出现了一下问题 Information:Gradle tasks [:app:assembleDebug]:app:preBuild UP-TO-DATE:app:preDebugBuild UP-TO-DATE:app:chec