Skip to content

com.android.dex.DexException: Multiple dex files define Ljavax/annotation/CheckForNull; #7

@yumodev

Description

@yumodev

Hello:
At compile time following error occurred. Hope to get your help

Information:Gradle tasks [:app:assembleBaiduDebug]
:app:preBuild UP-TO-DATE
:app:preBaiduDebugBuild UP-TO-DATE
:app:checkBaiduDebugManifest
:app:preBaiduReleaseBuild UP-TO-DATE
:app:preC360DebugBuild UP-TO-DATE
:app:preC360ReleaseBuild UP-TO-DATE
:app:preLeanoteDebugBuild UP-TO-DATE
:app:preLeanoteReleaseBuild UP-TO-DATE
:app:preUcDebugBuild UP-TO-DATE
:app:preUcReleaseBuild UP-TO-DATE
:app:preWandoujiaDebugBuild UP-TO-DATE
:app:preWandoujiaReleaseBuild UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72221Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72221Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2221Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72221Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV132221Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42221Library UP-TO-DATE
:app:prepareComAutomatticRest102Library UP-TO-DATE
:app:prepareComCrashlyticsSdkAndroidAnswers112Library UP-TO-DATE
:app:prepareComCrashlyticsSdkAndroidBeta112Library UP-TO-DATE
:app:prepareComCrashlyticsSdkAndroidCrashlytics222Library UP-TO-DATE
:app:prepareComGithubChrisbanesPhotoviewLibrary123Library UP-TO-DATE
:app:prepareComHelpshiftAndroidAar380Library UP-TO-DATE
:app:prepareComSimperiumAndroidSimperium064Library UP-TO-DATE
:app:prepareIoFabricSdkAndroidFabric120Library UP-TO-DATE
:app:prepareJpWasabeefRicheditorAndroid110Library UP-TO-DATE
:app:prepareOrgThoughtcrimeSslPinningAndroidPinning100Library UP-TO-DATE
:app:prepareOrgWordpressDragSortListview061Library UP-TO-DATE
:app:prepareOrgWordpressEmailchecker03Library UP-TO-DATE
:app:prepareOrgWordpressGraphview340Library UP-TO-DATE
:app:prepareOrgWordpressMediapicker124Library UP-TO-DATE
:app:prepareOrgWordpressPasscodelock100Library UP-TO-DATE
:app:prepareOrgWordpressPersistentedittext101Library UP-TO-DATE
:app:prepareOrgWordpressSlidinguppanel100Library UP-TO-DATE
:app:prepareBaiduDebugDependencies
:app:compileBaiduDebugAidl UP-TO-DATE
:app:compileBaiduDebugRenderscript UP-TO-DATE
:app:generateBaiduDebugBuildConfig UP-TO-DATE
:app:generateBaiduDebugAssets UP-TO-DATE
:app:mergeBaiduDebugAssets UP-TO-DATE
:app:generateBaiduDebugResValues UP-TO-DATE
:app:generateBaiduDebugResources UP-TO-DATE
:app:mergeBaiduDebugResources UP-TO-DATE
:app:processBaiduDebugManifest UP-TO-DATE
:app:processBaiduDebugResources UP-TO-DATE
:app:generateBaiduDebugSources UP-TO-DATE
:app:processBaiduDebugJavaRes UP-TO-DATE
:app:compileBaiduDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:app:compileBaiduDebugNdk UP-TO-DATE
:app:compileBaiduDebugSources
:app:preDexBaiduDebug
warning: Ignoring InnerClasses attribute for an anonymous inner class
(org.ccil.cowan.tagsoup.Parser$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is not an inner class.
:app:dexBaiduDebug
UNEXPECTED TOP-LEVEL EXCEPTION:
com.android.dex.DexException: Multiple dex files define Ljavax/annotation/CheckForNull;
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)
Error:Execution failed for task ':app:dexBaiduDebug'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_11.jdk/Contents/Home/bin/java'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 6 mins 39.455 secs
Information:1 error
Information:0 warnings
Information:See complete output in console

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions