Eclipse+ADT
I encountered an error while running the code today
[2022-01-10 21:57:18 – Dex Loader] Failed to load D:\Android SDK\android-sdk-windows\build-tools\29.0.3\lib\dx. jar
[2022-01-10 21:57:18 – BrewClock] Unknown error: Unable to build: the file dx. jar was not loaded from the SDK folder!
Cause: Eclipse automatically uses the highest version of the SDK, and ADT is lower than the SDK version
Solution:
Open SDK manager.exe download the minimum version of buildtools 20 21
Open project.properties, fill in the last line with SDK.buildtools=21.0.0
21.0.0 is the version number of buildtools you downloaded
You can find it in D:\Android SDK\ Android-SDK-windows\build-tools file
Save and run again
Similar Posts:
- How to Solve Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!
- Solve the problem of low version of Android SDK build tools
- :R cannot be resolved to a variable
- Eclipse: Failed to get the required ADT version number from the SDK
- Problem solving SDK platform tools component is missing
- [Solved] Could not find com.android.tools.build:aapt2:3.2.1-4818971.
- Android Call requires API level 19 (current min is 15)
- SDK manager cannot open the solution (Android)
- Plugin is too old, please update to a more recent
- Could not find com.android.tools.build:gradle:3.3.0.