Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
656 views
in Technique[技术] by (71.8m points)

java - Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder

When I try to run my Android project on Eclipse ADT, I see this in the Console:

[2017-03-24 15:34:41 - Dex Loader] Failed to load C:Usersjaimemontoyaandroid-sdksuild-tools26.0.0-previewlibdx.jar

[2017-03-24 15:34:41 - CouponClub] Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

enter image description here

I am using Eclipse Neon.2 Release (4.6.2):

enter image description here

This is the package configuration I have as seen from the Android SDK Manager:

enter image description here

What I understand from that error is that it failed to load dx.jar because it is trying to load it "from the SDK folder". The message even uses an exclamation mark to say that! What SDK folder is it referring to? I thought in this case "C:Usersjaimemontoyaandroid-sdks" would be considered an SDK folder. Do you know where it is expecting to find the "dx.jar" file?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

None of the answers helped me only my decision fixed the situation:

Fix is to copy

android-sdk/build-tools/25.0.3/lib

to the folder

android-sdk/build-tools/26.0.1/lib

Now all works great!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...