Eclipse项目 问题一:Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

Eclipse遇到如下错误:
Failed to load D:\neweclipse2\sdk\build-tools\26.0.2\lib\dx.jar
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
原因:
eclipse自动使用最高版本的SDK,ADT比SDK版本低导致

解决办法:

1、用SDK Manager.exe下载低版本的build-tools,如25.0.0

2、add this in the project.properties of your project:

sdk.buildtools=25.0.0 //设置sdk使用的buildtools版本即在“project.properties”的文件中添加sdk.buildtools=25.0.0

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容