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

你可能感兴趣的:(Eclipse项目 问题一:Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!)