zoukankan      html  css  js  c++  java
  • Android 关于::app:clean :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE,引用jar冲突问题

    错误提示: 
    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:codetestappsrcmainJavacom eipinappactivityEditInformationActivity.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:codetestappuildintermediatesexploded-aarcom.Android.supportsupport-v423.1.1jarslibsinternal_impl-23.1.1.jar took 3347 
    Dexing E:codetestappuildintermediatesexploded-aarcom.android.supportsupport-v423.1.1jarsclasses.jar took 7057 
    Dexing E:codetestappuildintermediatesexploded-aarcom.flyco.roundviewFlycoRoundView_Lib1.1.2jarsclasses.jar took 431 
    Dexing E:codetestappuildintermediatesexploded-aarcom.android.supportappcompat-v723.1.1jarsclasses.jar took 4074 
    Dexing E:codetestappuildintermediatesincremental-classesdebugclasses.jar took 338 
    Dexing E:codetestappuildintermediatesincremental-runtime-classesdebuginstant-run.jar took 1768 
    Dexing E:codetestappuildintermediates ransformsinstantRundebugfolders15main took 5800 
    Dexing E:codetestappuildintermediatesexploded-aarcom.bigkoopickerview2.0.8jarsclasses.jar took 961 
    Dexing C:Userszyy.gradlecachesmodules-2files-2.1com.jakewhartonutterknife7.0.1d5d13ea991eab0252e3710e5df3d6a9d4b21d461utterknife-7.0.1.jar took 1297 
    Dexing E:SDK_JDKandroid-sdkextrasandroidm2repositorycomandroidsupportsupport-annotations23.1.1support-annotations-23.1.1.jar took 222 
    Dexing E:codetestappuildintermediatesexploded-aarcom.7heaven.ioswidgetiosswitch.5jarslibslibrary_nineoldandroids.jar took 1969 
    Dexing E:codetestappuildintermediatesexploded-aarcom.7heaven.ioswidgetiosswitch.5jarsclasses.jar took 716 
    Dexing C:Userszyy.gradlecachesmodules-2files-2.1com.nineoldandroidslibrary2.4.0e9b63380f3a242dbdbf103a2355ad7e43bad17cblibrary-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_JDKjdkinjava.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

    这里写图片描述

    这里写图片描述

     
  • 相关阅读:
    Python运算符
    Python中的变量
    Chapter 4. Working with Key/Value Pairs
    Chapter 3. Programming with RDDs
    python常见的特异点
    18.天知道练习
    17.vue+axios搭配使用
    16.axios基本使用
    15.记事本练习
    14.v-model指令
  • 原文地址:https://www.cnblogs.com/zhujiabin/p/7200368.html
Copyright © 2011-2022 走看看