android开发过程中的错误:the file dx.jar was not loaded from the SDK folder

今天用eclipse+adt创建了一个项目,在运行的时候提示错误:“the file dx.jar was not loaded from the SDK folder”,是build-tools的问题,看版本是26.0.2,但我明明指定的目标平台是5.0啊,怎么会有这个问题呢?我猜是adt自动使用最新的build-tools,于是下载了所有26版本的build-tools,但问题依旧。后来通过百度查询,发现卸载api26的platform和build-tools可以解决问题。试了一下,果然!分析一下原因,可能是因为谷歌不再兼容ADT插件的原因吧(因为android stduio没有这个问题),估计是8.0以后全部要用android studio 了吧。

posted on 2018-03-09 14:33  大学校猿  阅读(729)  评论(0编辑  收藏  举报