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

别来无恙 提交于 2019-12-05 03:42:31
paulrehkugler

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

It worked for me.

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

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"

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

  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.

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

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

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!