NoClassDefFoundError的&安培;多DEX文件定义的问题..消化道出血 [英] NoClassDefFoundError & Multiple dex files define issues.. UGH

查看:203
本文介绍了NoClassDefFoundError的&安培;多DEX文件定义的问题..消化道出血的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好了,所以我很愚蠢的问题,现在..

Ok so i'm stupid problems right now..

我想使用谷歌在我的应用程序播放服务。

I'm trying to use google play services in my app.

我已经提到了图书馆,谷歌发挥服务,在我的应用程序和BaseGameUtils两个,然后我引用了谷歌Play服务,因为一个图书馆librbary的BaseGameUtiles,我得到这个问题..无法执行DEX:多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity;

i have referenced the library, google play serves, in both my app and BaseGameUtils, and then i references google play services as a library to the BaseGameUtiles librbary, and I get this issue.. Unable to execute dex: Multiple dex files define Lcom/google/android/gms/ads/AdActivity; "

通常这是什么意思是,你必须具有相同的类名称的两个.jar文件。我唯一​​的问题是我不知道是哪个jar文件具有相同的类。

usually what that means is that you have two .jar files that have the same class name. My only problem is I don't know which jar files have the same classes.

另外,我没有谷歌播放服务作为一个罐子在我的libs文件夹中也没有,我增加它作为一个外部JAR在Java构建路径菜单。

Also, I do not have google-play-services as a jar in my libs folder nor have i added it as an external jar in the "java build path" menu.

因此​​,所有我有两个依赖谷歌播放33.060.99和BaseGameUtils,也使用谷歌播放-33.060.99作为库。但在私人图书馆我下拉选项所有我增加了.jar文件,然后它也有谷歌播放服务包括在里面。我不认为应该有..

So all i have are two dependencies google-play-servies, and BaseGameUtils, which also uses google-play-servies as a library. but in the "private libraries" i drop down option for all the .jars i added and then it also has google-play-services included in there. which i don't think should be there..

如果我取消选中私人图书馆选项,将其加载但后来我得到一个NoClassDefFoundError的Andr​​oid项目的错误。我更新ADT为23.0.2或什么都最新的一个是当今14年7月13日 -

If i uncheck the "private libraries" option, it load but then i get a "NoClassDefFoundError Android Project" error. I updated ADT to 23.0.2 or what ever the newest one is for today 7/13/14 -

所以这里的问题JIST如果我选中私人图书馆选项,我得到多个DEX文件的问题,我认为这是与Android的支持库V4。但多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity;是错误我得到。

so here's the jist of the problem if i check the "private libraries" option i get multiple dex files issue, i think it has something to do with android support libraries v4. but does "Multiple dex files define Lcom/google/android/gms/ads/AdActivity;" is the error i get.

如果我取消选中私人图书馆我得到的NoClassDefFoundError唉..谁能告诉我这是怎么回事吧。

if i uncheck the option "private libraries" i get NoClassDefFoundError ugh.. can someone tell me what's going on please.

这里是我做了什么..你问我做后的照片..先生。rahandandn(对不起,屠宰您的姓名)

here is a picture of what i did.. after you asked me to do.. mr.. rahandandn (sorry for butchering your name)

和这里的更多的问题就说明我..

and here's more problems it shows me..

下面是FO basegameutiles Java构建路径菜单选项..

here is the java build path menu option fo basegameutiles..

试图为排行榜和成就使用谷歌播放服务。

trying to use google play services for leader boards and achievements.

他们说,谷歌的使用发挥服务为您的应用程序和BaseGameUtils库。

they say use google play services as a library for both your application and for BaseGameUtils.

他们也说谷歌使用的开发平台服务作为BaseGameUtils库。

they also say use google plat services as a library for BaseGameUtils.

当我做..我得到

无法执行DEX:多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity;

"Unable to execute dex: Multiple dex files define Lcom/google/android/gms/ads/AdActivity; "

这意味着同样的名字或东西两个jar文件一样,具有相同的类名。

that means two jar files of the same name or something like that has the same class names..

确定这样就意味着删除重复的..但是家伙又在哪里呢?

ok so that means delete the duplicate.. but guy's where is it?

这是谷歌的Java构建路径和秩序发挥出口服务..

this is the java build path and order export for google play services..

这里的一对BaseGameUtils一些信息

here's some info on BaseGameUtils

终于我的应用程序,即时通讯与合作。

and finally my app that im working with..

推荐答案

您有重复的罐子。请务必将其删除。我不能指出哪些是duplicare看着眼前的画面。所以贴出我的一个样本

You have Duplicate jars. Make sure you remove them. I can't point to which ones are duplicare looking at just the picture. So posted a sample of mine

我的项目的Eclipse的一个样本有罐子和referencede库项目

A sample of my project in eclipse with jars and referencede library projects

请注意:我有Android的支持 - v4.jar在这两个脸谱,EventBus和我自己的项目。他们是相同的版本。

Note : I have android-support-v4.jar in both FaceBook,EventBus and my own Project. They are of the same version.

看着这张照片收你也有无法解决的目标Android的17 ...

Looking at the picture closing you also have unable to resolve target android-17...

无法解析目标的机器人-15'

这篇关于NoClassDefFoundError的&安培;多DEX文件定义的问题..消化道出血的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆