多个dex文件定义Lcom

多个dex文件定义Lcom

本文介绍了无法执行dex:多个dex文件定义Lcom / google / android / gms / analytics / internal / Command的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨晚更新了我的Android SDK(31.4),之后我再一次编译了我的应用程序。
我得到这个错误:

  [2015-05-01 14:36:24  -  Dex Loader]无法执行dex:多个dex文件定义Lcom / google / android / gms / analytics / internal / Command $ 1; 
[2015-05-01 14:36:24 - SoFit]转换为Dalvik格式失败:无法执行dex:多个dex文件定义Lcom / google / android / gms / analytics / internal / Command $ 1;

我的罐子里没有改变任何东西。
这里是我的libs结构:



我试图:
- 清理项目。
- 重新启动eclipse。
- 删除bin文件夹。
- 删除私人图书馆。



我也尝试删除Google分析器jar,因为我通过最近的Google Play服务更新,库。
但它不会因为缺少类而编译。



我的猜测是,Google Play服务的某些内容是错误的,但我无法找到答案。 解决方案

尝试从目录库中删除libGoogleAnalyticsServices.jar,并更新代码,因为v2不再支持。然后清理它并运行。一切都会好起来的。

I updated my Android SDK last night (31.4) and after that I canot compile my app anymore.I get this error:

[2015-05-01 14:36:24 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/android/gms/analytics/internal/Command$1;
[2015-05-01 14:36:24 - SoFit] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/android/gms/analytics/internal/Command$1;

I have not changed anything in my jars.Here is my libs structure:

I tried to: - Clean project. - Restart eclipse. - Delete the bin folder. - Remove private libraries.

I also tried to remove the google analysts jar because I though that from the recent google play services update they put the analysts inside the lib.But it wont compile either because of missing classes.

My guess that something with the google play services is wrong but I canot find what.

解决方案

Try to remove "libGoogleAnalyticsServices.jar" from your directory libs and also update the code As v2 doesnt support anymore. Then Clean it and Run. Everything will be fine.

这篇关于无法执行dex:多个dex文件定义Lcom / google / android / gms / analytics / internal / Command的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 05:38