转换到的Dalvik格式失败:无法执行DEX SDK工具22.3格式、工具、Dalvik、DEX

2023-09-06 01:58:41 作者:谁没爱过一只狗呢

多DEX文件定义LCOM /谷歌/广告/ AdRequest $错误code

Multiple dex files define Lcom/google/ads/AdRequest$ErrorCode

最新ADT,最新的SDK工具(22.3)。

Latest ADT, Latest SDK Tools (22.3).

我试了:

清洁/重建 更新的Eclipse 删除bin和根文件夹 重启Eclipse 码的手动建立与蚂蚁 在加上一些其他的东西

我所有的项目都瞄准API拉特19。

All my projects are now targeting API lvl 19.

我不知道该怎么做。

感谢

推荐答案

在多个DE​​X文件的错误只是告诉你,你是包括来自不同来源的同一个类文件。重新启动Eclipse或建筑,蚂蚁会因此不利于您的项目设置仅仅是无效的。

The multiple dex files error just tell you that you are including the same class file from different sources. Restarting Eclipse or building with Ant will therefore not help as your project setup is just invalid.

由于您没有指定使用的是什么陶罐,有没有办法告诉正在发生的事情是肯定的。

As you do not specify what jars you are using, there is no way to tell what is going on for sure.

不过,最新的谷歌播放库包括广告和我的猜测是,你是包括Admob的和谷歌播放服务,这显然包含相同的类。在这种情况下,你应该迁移code使用谷歌播放服务广告,并从项目中删除了AdMob的罐子。

However, the newest Google Play library includes ads and my guess would be that you are including both Admob and Google Play Services which apparently contain the same classes. In that case you should migrate your code to use the Google Play Service ads and remove the admob jar from your project.

 
精彩推荐
图片推荐