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

I get 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 

until some time it worked fine for me, and I think that due to some kind of virus or something that my setup went through, please help me with this.

+8
android eclipse sdk
source share
9 answers

It worked for me.

I deleted the assembly automatically and then built the entire workspace, how it works for me :)

+2
source share

This SO answer provides more details if auto-rebuilding / rebuilding an assembly does not work.

+4
source share

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

"add this to the project.properties of your project: sdk.buildtools = 25.0.2"

+2
source share

File-> Switch workspace-> (new workspace) this will definitely work :)

+1
source share
  • Open Android SDK Manager (Windows β†’ Android SDK manager)

  • Go to Tools β†’ Options.

  • Click "Clear Cache" β†’ "Close".

  • Go to Packages β†’ Update.

Packages will now be displayed under the last download in the SDK manager.

+1
source share

After you tried all this, but did not solve my problem, I change the location of the SDK: Change windows β†’ settings-> Android-> change the location of the FROM.It SDK for me

0
source share

The only solution that worked for me was to remove vulnerable versions from the build tools folder.

0
source share

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

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

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

Example:

  • {Android SDK dir} \ build-tools I have 28.0.3. Then I changed sdk.buildtools = 28.0.3 gave the assembly. Did not work
  • {Android SDK dir} \ build-tools I have 25.0.3. Then I changed sdk.buildtools = 25.0.3 gave the assembly. Did not work
  • {Android SDK dir} \ build-tools I have 24.0.3. Then I changed sdk.buildtools = 24.0.3 gave the assembly. success
0
source share

please i have the same problem please contact me to help me my email address is montasermohamed100@gmail.com

-one
source share

All Articles