Eclipse running Android project Unable to build: the file dx.jar was not loaded from the SDK folder! Ultimate solution

Running an Android project in eclipse this afternoon, Unable to build: the file dx.jar was not loaded from the SDK folder appeared!
write picture description here
When this happens, the first thing to do is to start google. However, it didn't work out, and after a few hours of work, it was still fruitless.

Open the Android SDK Manager to see that the
write picture description here
latest version of Build-tools is 27.0.3. I believe that everyone must be inclined to download the latest version, but goose, it is this latest version that is doing the trick. Allow me to speak slowly.

Looking at many methods on the Internet how to replace how to replace, they didn't mention the point, I found the real problem, that is

Build-tools above 26+ cannot be used! !

Thankfully, I tried it from the latest version one by one, I asked my classmate, the same program, she could run, and asked, she used 25, so I guess it should be the reason, if you downloaded 26+ , eclipse will use the latest version by default, no matter how you replace it, it is useless, the best way is to delete all versions above 26+.

With this idea in mind, I downloaded version 25, then deleted all versions above 26+, and finally
write picture description here
restarted eclipse as shown below, and it ran successfully! ! I believe my classmates, it will be useful! !

Personal blog http://www.codeliu.com

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324843394&siteId=291194637