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

做~自己de王妃 提交于 2019-12-07 00:30:02

问题


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


回答1:


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




回答2:


It worked for me.

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




回答3:


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"




回答4:


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




回答5:


  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.




回答6:


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



回答7:


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




回答8:


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



来源:https://stackoverflow.com/questions/13025404/unable-to-build-the-file-dx-jar-was-not-loaded-from-the-sdk-folder-in-my-eclips

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