问题描述
我不知道多地塞米松的问题之前已经报道过很多次,但我没有一个解决方案,似乎我的情况下工作。
I do know Multiple dex problems have been reported a lot of times before, but i none of the solutions seem to work in my case.
控制台:
Unable to execute dex: Multiple dex files define Lbolts/AggregateException;
Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lbolts/AggregateException;
其中一个流行的解决方案是不标记的Android的私人图书馆从构建路径容器。我不能这样做,因为有在该容器中的几个库,我需要。
One of the popular solutions is unmarking the 'Android private libraries' container from buildpath. I cannot do that because there are a few more libraries in that container that i need.
另一种解决方案是不标记以.jar形式明确添加任何重复的库。我没有这样的库。
Another solution is unmarking any duplicate library explicitly added in .jar form. I have no such libraries.
在我的情况下,重复的库是:Android的支持-V7-appcompat.jar我把它(直接从SDK文件夹中引用)在这两个容器:
The duplicate library in my case is: android-support-v7-appcompat.jarI have it (directly referenced from the sdk folder) in these two containers:
1。)Android的私人图书馆
1.) Android Private Libraries
2。)Android的依赖
2.) Android Dependencies
的问题是,只是不能勾去掉任意两个容器完全的,因为他们都含有其它必要的库。但我也一时无法消除眼前这个重复的.jar文件无论从容器中。
The problem is that just cannot untick any of these two containers completely, because both of them contain other necessary libraries. But i also am unable to remove just this duplicate .jar file from either containers.
编辑:N.B.当我加入v7compat支持library_project到我的项目,它进入这两个容器。必须有某种方式使进入唯一的一个。
N.B. when i add the v7compat support library_project to my project, it enters into both containers. There must be some way so that goes into only one.
任何一个可以帮助我,我该怎么办呢?
Can any one help me how can i do it?
推荐答案
解决不知何故
什么是真正造成麻烦的是螺栓-的Android库。有它的矛盾的两个不同版本。在facebooksdk自带的螺栓,Android的1.1.2和appcompatv7带有1.1.4。
what was actually causing the trouble is the bolts-android library. there were two DIFFERENT versions of it conflicting. the facebooksdk comes with bolts-android-1.1.2 and appcompatv7 comes with 1.1.4.
我在FacebookSDK库项目,其中包含螺栓-的Android 1.1.2无人盯防的Android私家藏书容器。这样一来,我的项目现在只有一个版本,1.1.4
I unmarked Android Private Libraries container in the FacebookSDK library project, which contained bolts-android-1.1.2. As a result, my project now had only one version, 1.1.4
现在运行正常
原来,重复appcompatv7项,也从来不麻烦
turns out, the duplicate appcompatv7 entries were never troubling
这篇关于无法执行DEX:多DEX文件定义Lbolts / AggregateException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!