无法执行DEX:多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity; [英] Unable to execute dex: Multiple dex files define Lcom/google/android/gms/ads/AdActivity;

查看:202
本文介绍了无法执行DEX:多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

我已经提到图书馆,谷歌游戏服务,在这两个我的应用程序和BaseGameUtils,我有无法执行DEX:多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity;

通常这是什么意思是,你必须具有相同的类名称的两个.jar文件。我唯一​​的问题是我不知道哪一个jar文件具有相同的类。另外,我没有谷歌,播放服务,在我的libs文件夹中的JAR我也没有增加一条,作为构建路径菜单在外部罐子。因此,所有我有两个依赖谷歌播放33.060.99和BaseGameUtils,也使用谷歌播放 - 33.060.99作为一个库。因此,有人可以告诉我这是什么问题,甚至意味着,因为我已经竭尽所能。

这里是我的研究表明我试图帮助自己。

<一个href="http://stackoverflow.com/questions/20050455/can%C2%B4t-use-admob-api-since-i-updated-to-api-19">Can´t使用AdMob的API,因为我更新,以API 19

<一个href="http://stackoverflow.com/questions/8437796/android-build-fail-java-lang-illegalargumentexception-already-added-lcom-goo">Android构建失败 - java.lang.IllegalArgumentException:如果已经添加:LCOM /谷歌/ API /客户机/越狱/ CharEscapers;

<一个href="http://stackoverflow.com/questions/2680827/conversion-to-dalvik-format-failed-with-error-1-on-external-jar">"Conversion到的Dalvik格式失败,错误1&QUOT;在外部JAR

<一个href="http://stackoverflow.com/questions/23723898/admob-jar-library-and-google-play-service-jar-not-working-together">adMob.jar图书馆和谷歌播放service.jar中不携手合作

解决方案
  

因此​​,所有我有两个依赖谷歌播放33.060.99和BaseGameUtils,也使用谷歌播放 - 33.060.99作为一个库

你是说,你要引用谷歌播放服务在这两个BaseGameUtils和你的项目?

在BaseGameUtils引用谷歌播放服务。

在您的项目引用BaseGameUtils。

然后检查,以确保你有你的广告设置正确(admobs现在是谷歌播放服务,不再是一个单独的JAR):

<一个href="http://stackoverflow.com/questions/24767977/multiple-dex-files-define-deleting-extra-jar-file-still-not-working-what-shou/24800861#24800861">Multiple DEX文件定义 - 删除多余的jar文件仍然没有工作。我该怎么办?

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

i have referenced the library, google play serves, in both my app and BaseGameUtils and I have Unable to execute dex: Multiple dex files define Lcom/google/android/gms/ads/AdActivity; "

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. 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 build path menu. So all i have are two dependencies google-play-servies, and BaseGameUtils, which also uses google-play-servies as a library. So can someone tell me what this issue even means, cause i've tried everything..

here's my research to show i've tried to help myself..

Can´t use adMob api since I updated to API 19

Android Build fail - java.lang.IllegalArgumentException: already added: Lcom/google/api/client/escape/CharEscapers;

"Conversion to Dalvik format failed with error 1" on external JAR

adMob.jar library and google play service.jar not working together

解决方案

So all i have are two dependencies google-play-servies, and BaseGameUtils, which also uses google-play-servies as a library

Are you saying that you are referencing Google Play Services in both BaseGameUtils and your project ?

In BaseGameUtils reference Google Play Services.

In your project reference BaseGameUtils.

Then check to ensure you have got your advertising set up correctly (admobs is now in google play services , no longer a separate jar):

Multiple dex files define - Deleting extra jar file still not working. What should I do?

这篇关于无法执行DEX:多DEX文件定义LCOM /谷歌/安卓/ GMS /广告/ AdActivity;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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