错误提示: 
Information:Gradle tasks [:app:clean, :app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:prepareDebugUnitTestDependencies, :app:mockableAndroidJar, :app:assembleDebug] 
:app:clean 
:app:preBuild UP-TO-DATE 
:app:preDebugBuild UP-TO-DATE 
:app:checkDebugManifes

。。。。。。

:FlycoTabLayout_Lib:packageReleaseRenderscript UP-TO-DATE

:FlycoTabLayout_Lib:transformResourcesWithMergeJavaResForRelease UP-TO-DATE

:FlycoTabLayout_Lib:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE 
:FlycoTabLayout_Lib:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE 
:FlycoTabLayout_Lib:bundleRelease UP-TO-DATE 
:app:preReleaseBuild UP-TO-DATE 
:app:prepareCodetestFlycoTabLayout_Lib150Library

:app:generateDebugAndroidTestSources 
:app:preDebugUnitTestBuild UP-TO-DATE 
:app:prepareDebugUnitTestDependencies 
:app:mockableAndroidJar UP-TO-DATE 
:app:compileDebugJavaWithJavac 
注: 某些输入文件使用或覆盖了已过时的 API。 
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 
注: E:\codetest\app\src\main\Java\com\neipin\app\activity\EditInformationActivity.java使用了未经检查或不安全的操作。 
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 
:app:compileDebugNdk UP-TO-DATE 
:app:compileDebugSources 
:app:buildInfoDebugLoader 
:app:transformClassesWithExtractJarsForDebug

:app:generateDebugInstantRunAppInfo 
:app:transformClassesWithDexForDebug 
Allocated dexExecutorService of size 1 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.Android.support\support-v4\23.1.1\jars\libs\internal_impl-23.1.1.jar took 3347 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.1.1\jars\classes.jar took 7057 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.flyco.roundview\FlycoRoundView_Lib\1.1.2\jars\classes.jar took 431 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\23.1.1\jars\classes.jar took 4074 
Dexing E:\codetest\app\build\intermediates\incremental-classes\debug\classes.jar took 338 
Dexing E:\codetest\app\build\intermediates\incremental-runtime-classes\debug\instant-run.jar took 1768 
Dexing E:\codetest\app\build\intermediates\transforms\instantRun\debug\folders\1\5\main took 5800 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.bigkoo\pickerview\2.0.8\jars\classes.jar took 961 
Dexing C:\Users\zyy.gradle\caches\modules-2\files-2.1\com.jakewharton\butterknife\7.0.1\d5d13ea991eab0252e3710e5df3d6a9d4b21d461\butterknife-7.0.1.jar took 1297 
Dexing E:\SDK_JDK\android-sdk\extras\android\m2repository\com\android\support\support-annotations\23.1.1\support-annotations-23.1.1.jar took 222 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.7heaven.ioswidget\iosswitch\0.5\jars\libs\library_nineoldandroids.jar took 1969 
Dexing E:\codetest\app\build\intermediates\exploded-aar\com.7heaven.ioswidget\iosswitch\0.5\jars\classes.jar took 716 
Dexing C:\Users\zyy.gradle\caches\modules-2\files-2.1\com.nineoldandroids\library\2.4.0\e9b63380f3a242dbdbf103a2355ad7e43bad17cb\library-2.4.0.jar took 2242 
Error:Error converting bytecode to dex: 
Cause: com.android.dex.DexException: Multiple dex files define Lcom/nineoldandroids/animation/Animator$AnimatorListener; 
:app:transformClassesWithDexForDebug FAILED 
Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ‘command ‘E:\SDK_JDK\jdk\bin\java.exe” finished with non-zero exit value 2 
Information:BUILD FAILED 
Information:Total time: 48.031 secs 
Information:2 errors 
Information:0 warnings 
Information:See complete output in console

问题原因:

1.引用的github开源项目,module之间有冲突的jar(主要是v4 v7包冲突版本不同)

2.提示类似错误,可能是mainfist配置的activity,服务等信息有重复添加

3.res下的xml里有错误,复制来的布局中引用了其自定义的布局。或者引用的图片

此类问题解决办法:

1.删除冲突的引用

2.大多数问题解决办法是clean project

3.逐个检查下xml文件

4.将引用的lib 只需要将两个冲突中的一个compile改成provided就行。 
具体操作请转到 
http://blog.csdn.net/hyr83960944/article/details/41825087

 

Android 关于::app:clean :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE,引用jar冲突问题的更多相关文章

  1. Android 解决Execution failed for task ':app:clean.'报错

    说实话,我还真是没见过比Execution failed for task ':app:clean.'更为恶心,更为不要脸的bug啦,代码没啥问题,一下子行让你爽爽,一下子又不鸟你啦,研究了下,终于找 ...

  2. Android 4.3 系统裁剪——删除不使用的app及添加自己app

    删除不使用的apk 系统自带的app位置是在/android4.3/packages/apps 以下是一些APP作用分析: | |– BasicSmsReceiver | |– Bluetooth ( ...

  3. Error:Execution failed for task ':app:clean'.

    运行时出现 Error:Execution failed for task ':app:clean'. 错误,Builld->Clean Project即可.

  4. Android开发5:应用程序窗口小部件App Widgets的实现

    前言 本次主要是实现一个Android应用,实现静态广播.动态广播两种改变 widget内容的方法,即在上篇博文中实验的基础上进行修改,所以此次实验的重点是AppWidget小部件的实现啦~ 首先,我 ...

  5. app:clean classes Exception

    Error:Execution failed for task ':app:clean'.> Unable to delete directory: C:\Users\LiuZhen\Deskt ...

  6. Android窗口管理服务WindowManagerService切换Activity窗口(App Transition)的过程分析

    文章转载至CSDN社区罗升阳的安卓之旅,原文地址:http://blog.csdn.net/luoshengyang/article/details/8596449 在Android系统中,同一时刻只 ...

  7. Execution failed for task':app;clean'

    Execution failed for task':app;clean' >Unable to delete directory:f:xxxxxbuild\output\apk当程序出先这个错 ...

  8. Conflict with dependency 'com.android.support:support-annotations' in project ':xxx'. Resolved versions for app (25.4.0) and test app (27.1.1) differ 问题解决

    Conflict with dependency 'com.android.support:support-annotations' in project ':xxx'. Resolved versi ...

  9. Android 必知必会 - 依据包名推断 App 执行状态

    假设移动端訪问不佳,请訪问: 掘金版 Github 版 获取指定包名的 APP 是否还在后台执行,推断 APP 是否存活. 背景 能够依据 App 是否有 Service 分两类情况处理: 没有 Se ...

随机推荐

  1. Signal programming

    Signal programming is used in the same sense as dataflow programming, and is similar to event-driven ...

  2. shell脚本备份nginx日志

    vim /data/runlog.sh                                                  #编辑一个 shell 脚本 #!/bin/bash LOGP ...

  3. Git 内部原理 - (3) Git 引用 (4)包文件

    Git 引用 我们可以借助类似于 git log 1a410e 这样的命令来浏览完整的提交历史,但为了能遍历那段历史从而找到所有相关对象,你仍须记住 1a410e 是最后一个提交. 我们需要一个文件来 ...

  4. ES6学习笔记(十五)Generator函数的异步应用

    1.传统方法 ES6 诞生以前,异步编程的方法,大概有下面四种. 回调函数 事件监听 发布/订阅 Promise 对象 Generator 函数将 JavaScript 异步编程带入了一个全新的阶段. ...

  5. Decorator - 利用装饰器武装前端代码

    历史 以前做后端时,接触过一点Spring,也是第一次了解DI.IOC等概念,面向切面编程,对于面向对象编程还不怎么熟练的情况下,整个人慌的一批,它的日志记录.数据库配置等都非常方便,不回侵入到业务代 ...

  6. HDU-1023 Train Problem II 卡特兰数(结合高精度乘除)

    题目链接:https://cn.vjudge.net/problem/HDU-1023 题意 卡特兰数的应用之一 求一个长度为n的序列通过栈后的结果序列有几种 思路 一开始不知道什么是卡特兰数,猜测是 ...

  7. HDU-2050 折线分割平面 找规律&递推

    题目链接:https://cn.vjudge.net/problem/HDU-2050 题意 算了吧,中文题不解释了 我们看到过很多直线分割平面的题目,今天的这个题目稍微有些变化,我们要求的是n条折线 ...

  8. 在MAC上安装lxml到Python3

    首先可以直接使用以下命令安装lxml,但是会默认安装到Python2,没有找到怎么指定安装到Python3 sudo easy_install lxml 想要安装到Python3需要先安装pip: s ...

  9. 洛谷 P2083 找人

    P2083 找人 题目背景 无 题目描述 小明要到他的同学家玩,可他只知道他住在某一单元,却不知住在哪个房间.那个单元有N层(1,2……N),每层有M(1,2……M)个房间. 小明会从第一层的某个房间 ...

  10. ArcGIS api for javascript——渲染-使用分级渲染

    描述 本例使用一个分级渲染通过人口密度用符号表示Kansas.代码明确地增加类并为每一个定义颜色.使用ClassBreaksRenderer.addBreak()方法定义类,参数是在类中包含的最大值和 ...