【发布时间】:2018-01-29 05:16:39
【问题描述】:
我使用来自 appodeal 的奖励视频制作了一个应用。一切正常,但发生了一些事情,应用程序停止使用来自 appodeal 的库进行编译,出现错误:Dex 合并错误。出了什么问题?
日志:
项目 ':app' 中的配置 'compile' 已弃用。采用 而是“实施”。 :app:buildInfoDebugLoader :app:preBuild 最新:app:preDebugBuild 最新:app:compileDebugAidl 最新:app:compileDebugRenderscript 最新 :app:checkDebugManifest UP-TO-DATE :app:generateDebugBuildConfig 最新:app:prepareLintJar 最新:app:generateDebugResValues 最新:app:generateDebugResources 最新 :app:mergeDebugResources 最新 :app:createDebugCompatibleScreenManifests 最新 :app:processDebugManifest UP-TO-DATE :app:splitsDiscoveryTaskDebug 最新:app:processDebugResources 最新 :app:generateDebugSources :app:javaPreCompileDebug :app:compileDebugJavaWithJavac :app:mergeDebugShaders 最新 :app:compileDebugShaders UP-TO-DATE :app:generateDebugAssets 最新:app:mergeDebugAssets 最新 :app:packageInstantRunResourcesDebug UP-TO-DATE :app:checkManifestChangesDebug :app:transformClassesWithExtractJarsForDebug 最新 :app:transformClassesWithInstantRunVerifierForDebug 最新 :app:transformClassesWithDependencyCheckerForDebug :app:compileDebugNdk 无源 :app:mergeDebugJniLibFolders 最新 :app:transformNativeLibsWithMergeJniLibsForDebug :app:processDebugJavaRes 无源 :app:transformResourcesWithMergeJavaResForDebug :app:transformNativeLibsAndResourcesWithJavaResourcesVerifierForDebug :app:transformClassesWithInstantRunForDebug :app:transformClassesEnhancedWithInstantReloadDexForDebug UP-TO-DATE :app:incrementalDebugTasks :app:preColdswapDebug :app:fastDeployDebugExtractor 最新 :app:generateDebugInstantRunAppInfo UP-TO-DATE :app:transformClassesWithInstantRunSlicerForDebug 最新 :app:transformClassesWithDexBuilderForDebug :app:transformDexArchiveWithExternalLibsDexMergerForDebug 失败 :app:buildInfoGeneratorDebug
FAILURE:构建失败并出现异常。
出了什么问题:任务执行失败 ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'。 java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException:无法合并 索引
【问题讨论】:
-
能否请您发布
Logcat错误 -
这里是:错误:任务 ':app:transformDexArchiveWithExternalLibsDexMergerForDebug' 的执行失败。 > java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: 无法合并 dex
-
您可以先使用搜索这里的错误。此链接link 可能会对您有所帮助
-
显示完整错误。它通常包含有关究竟是什么错误的详细信息。
-
我不能将它粘贴到评论中,所以它会在答案中