问题描述
我创建Android应用程序,并尝试添加AdMob的给它。但它不工作。谁能帮助我解决这个错误。
I created android application and try to add admob to it. but it not works. can anyone help me to fix this error.
[2014-04-09 15:16:51 - Dex Loader] Unable to execute dex: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
[2014-04-09 15:16:51 - Aurudhu_App] Conversion to Dalvik format failed: Unable to execute dex: Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode;
这是应用程序体系结构。
This is the application architecture.
推荐答案
谷歌付费services.jar和GoogleAdMobAdsSdk.jar具有相同的类名的AdMob。可能是由于这个原因,你越来越多.dex文件。
google-pay-services.jar and GoogleAdMobAdsSdk.jar having same class name for AdMob. May be due to that reason you are getting multiple .dex files.
请按照文档步骤此示例code链接的AdMob通过使用谷歌 - 付费 - services.jar代替GoogleAdMobAdsSdk.jar。
Please follow the docs steps of this sample code link of AdMob by using google-pay-services.jar instead of GoogleAdMobAdsSdk.jar.
希望它会帮助你,不过你有任何问题,然后让我知道...
Hope it will help you, Still you have any problem then let me know...
这篇关于多DEX文件定义LCOM /谷歌/广告/ AdRequest $错误code和多DEX文件定义LCOM /谷歌/广告/ AdRequest $错误code的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!