8

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???

Ankit HTech
  • 1,783
  • 5
  • 27
  • 42

9 Answers9

4

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

Community
  • 1
  • 1
paulrehkugler
  • 3,161
  • 21
  • 44
2

It worked for me.

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

Ankit HTech
  • 1,783
  • 5
  • 27
  • 42
2

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"

wencha
  • 157
  • 1
  • 2
  • 10
1

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

Faakhir
  • 3,170
  • 34
  • 32
1
  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.

sumit pandey
  • 1,204
  • 1
  • 15
  • 23
1

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
Bahu
  • 1,344
  • 2
  • 18
  • 47
0

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

Rajiv Gaikwad
  • 105
  • 2
  • 12
0

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

Ishara Amarasekera
  • 1,295
  • 1
  • 14
  • 32
0

Go to project.properties file and add the following line

sdk.buildtools=25.0.3
Suit Boy Apps
  • 3,005
  • 8
  • 36
  • 54