title: Android studio app does not want compile when I add libs
body: <p>I made an app with rewarded video from appodeal. Everything was ok but something happened and the app stopped compiling with libs from appodeal, with error: Dex merge error. What is going wrong?</p>
  
  <p>logs :</p>
  
  <blockquote>
    <p>Configuration 'compile' in project ':app' is deprecated. Use
    'implementation' instead. :app:buildInfoDebugLoader :app:preBuild
    UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:compileDebugAidl
    UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE
    :app:checkDebugManifest UP-TO-DATE :app:generateDebugBuildConfig
    UP-TO-DATE :app:prepareLintJar UP-TO-DATE :app:generateDebugResValues
    UP-TO-DATE :app:generateDebugResources UP-TO-DATE
    :app:mergeDebugResources UP-TO-DATE
    :app:createDebugCompatibleScreenManifests UP-TO-DATE
    :app:processDebugManifest UP-TO-DATE :app:splitsDiscoveryTaskDebug
    UP-TO-DATE :app:processDebugResources UP-TO-DATE
    :app:generateDebugSources :app:javaPreCompileDebug
    :app:compileDebugJavaWithJavac :app:mergeDebugShaders UP-TO-DATE
    :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets
    UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE
    :app:packageInstantRunResourcesDebug UP-TO-DATE
    :app:checkManifestChangesDebug
    :app:transformClassesWithExtractJarsForDebug UP-TO-DATE
    :app:transformClassesWithInstantRunVerifierForDebug UP-TO-DATE
    :app:transformClassesWithDependencyCheckerForDebug
    :app:compileDebugNdk NO-SOURCE :app:mergeDebugJniLibFolders UP-TO-DATE
    :app:transformNativeLibsWithMergeJniLibsForDebug
    :app:processDebugJavaRes NO-SOURCE
    :app:transformResourcesWithMergeJavaResForDebug
    :app:transformNativeLibsAndResourcesWithJavaResourcesVerifierForDebug
    :app:transformClassesWithInstantRunForDebug
    :app:transformClassesEnhancedWithInstantReloadDexForDebug UP-TO-DATE
    :app:incrementalDebugTasks :app:preColdswapDebug
    :app:fastDeployDebugExtractor UP-TO-DATE
    :app:generateDebugInstantRunAppInfo UP-TO-DATE
    :app:transformClassesWithInstantRunSlicerForDebug UP-TO-DATE
    :app:transformClassesWithDexBuilderForDebug
    :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED
    :app:buildInfoGeneratorDebug</p>
    
    <p>FAILURE: Build failed with an exception.</p>
    
    <p>What went wrong: Execution failed for task
    ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
    java.lang.RuntimeException:
    com.android.builder.dexing.DexArchiveMergerException: Unable to merge
    dex</p>
  </blockquote>