Home » Android » android – Unable to build: the file dx.jar was not loaded from the SDK folder in my eclipse

android – Unable to build: the file dx.jar was not loaded from the SDK folder in my eclipse

Posted by: admin June 15, 2020 Leave a comment

Questions:

I am getting this error

Description Resource    Path    Location    Type
Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder! Sample1     Unknown Android Packaging Problem

before some time it was working fine for me and I think due to some virus or something my setup got effected please help me on this???

How to&Answers:

This SO answer provides more details if removing build automatically / rebuilding doesn’t work.

Answer:

It worked for me.

I removed build automatically and then build whole workspace some how it worked for me 🙂

Answer:

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

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

Answer:

File-> Switch Workspace-> (new workspace)
it will definitely work 🙂

Answer:

  1. Open Android SDK Manager.(Windows → Android SDK manager)

  2. Go to Tools → Options.

  3. Click on Clear Cache → Close.

  4. Go to Packages → Reload.

Packages will be visible now under the latest downloads in SDK manager.

Answer:

I tried most of the things but nothing worked for me. After spending some time i got the solution

Open {Android SDK dir}\build-tools and also open project.properties in our project

Check for sdk.buildtools=29.0.0 (If you don’t have this, just add it manually)
Change 29.0.0 entry based on {Android SDK dir}\build-tools folder and start the build

Ex:

  • {Android SDK dir}\build-tools i have 28.0.3. Then I’ve changed sdk.buildtools=28.0.3 gave the build. Not worked
  • {Android SDK dir}\build-tools i have 25.0.3. Then I’ve changed sdk.buildtools=25.0.3 gave the build. Not worked
  • {Android SDK dir}\build-tools i have 24.0.3. Then I’ve changed sdk.buildtools=24.0.3 gave the build. Success

Answer:

After trying all these,yet haven’t solve my problem then i change the SDK LOCATION:
Do change the windows -> preferences-> Android-> change the SDK LOCATION FROM.It work for me

Answer:

The only solution worked for me was removing the impacted versions from build tools folder.