Android ADT error, dx.jar was not loaded from the

2019-01-04 08:36发布

I just downloaded Eclipse Galileo and installed ADT10 and tried to a phonegap app using this guide: http://www.phonegap.com/start But each time i try to build im getting this error: Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

I know that there are already some questions/answers about it in this forum but they didnt work for me.

16条回答
够拽才男人
2楼-- · 2019-01-04 09:06

I had this problem in Eclipse since I upgraded from build-tools 25.0.0 to 26.0.0

I just add "sdk.buildtools=25.0.0" in my project.properties and it works again

my project.properties:

target=android-23
sdk.buildtools=25.0.0
android.library.reference.1=../design
查看更多
等我变得足够好
3楼-- · 2019-01-04 09:06

I haven't seen this specific problem, but you may get better results with Eclipse Helios or Indigo. Galileo is getting old and is unlikely to be tested as much as the more recent Eclipse platforms.

查看更多
一夜七次
4楼-- · 2019-01-04 09:08

I just encountered the same problem yesterday, in Eclipse of Neon Release (4.6.0).

It's a compatible issue related to 26.0.0 of android-sdk "build-tools".

Simple Solution:

  • Delete "26.0.0" in "build-tools" directory
  • Use "25.0.2" instead
  • Restart eclipse

Other Solution:

  • add this in the project.properties of your project:
    sdk.buildtools=25.0.2

Good luck!

查看更多
ら.Afraid
5楼-- · 2019-01-04 09:08

Windows 7 64 bit, Intel i7

This happened to me as well after I updated the SDK to be Jelly Bean compatible. The folder platform-tools\lib was gone. I also wasn't able to uninstall/reinstall the program-tools in the SDK manager at first. It gave me the error that a particular file in the android\temp folder was not there. I had to change the permissions on the android folder to allow every action, and that solved it.

查看更多
放我归山
6楼-- · 2019-01-04 09:13

sometimes you need just to restart Eclipse after the update, it worked for me to fix that error

查看更多
Summer. ? 凉城
7楼-- · 2019-01-04 09:13

Unzip the updated Android SDK in your current SDK folder. This solved my problem.

查看更多
登录 后发表回答