问题描述
我无法构建我的应用程序我正在运行今天下载的最新构建工具,这在更新后开始发生.
I am unable to build my applicationI am running the latest build tools downloaded today, this started happening after the update.
-dex:
[dex] Converting compiled files and external libraries into
/Users/rob/Repos/my_app/bin/classes.dex...
[dx]
[dx] UNEXPECTED TOP-LEVEL EXCEPTION:
[dx] com.android.dx.util.DexException: Multiple dex files define
Lcom/robaldred/myapp/About$1;
我试过清理和重建,我也试过在 Eclipse 中,但它给出了同样的错误.有人有任何想法吗?我现在在砖墙旁.
I have tried cleaning and rebuilding, I've also tried in Eclipse but it gives the same error.Anyone got any ideas? I'm at a brick wall here now.
推荐答案
昨天我的系统(还有另一个在工作中)发生了一些事情,SDK 想要推送平台工具更新,但后来我根本无法使用它等
Something happened yesterday to my system (and another here at work) where the SDK wanted to push the platform tools update but then I was unable to use it at all, etc.
我最终将我的 SDK 移开并重新安装,然后一切正常.我没有你的 dex 特定问题,但我怀疑昨天的更新推送破坏了很多东西.祝你好运.
I ended up moving my SDK out of the way and reinstalling it, then everything worked as it always had. I did not have your dex specific issue, but I suspect the update push yesterday broke a good many things. Good luck.
这篇关于用ant或Eclipse编译多个dex文件出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!