简体   繁体   English

为什么会引发多个Dex文件错误

[英]Why Multiple Dex files error is thrown

I want to know the reason for the following error: "unable to execute dex: multiple dex files define" . 我想知道以下错误的原因: “无法执行dex:定义了多个dex文件”

In my project I have multiple projects having different set of libraries, some projects share same library. 在我的项目中,我有多个具有不同库集的项目,有些项目共享同一个库。 What is the reason for this error. 此错误的原因是什么。

This is because I had two google play services versions pointed in the project. 这是因为我在项目中指定了两个Google Play服务版本。 I decoupled the unwanted library and the project compiles. 我解耦了不需要的库,并编译了项目。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM