Error:Android Dex: Cannot find file C:\Users\HI\AppData\Local\Android\Sdk\build-tools\32.0.0\lib\dx.jar
Asked
Active
Viewed 243 times
2 Answers
0
Try to use another version of Android SDK instead. Google breaks backward compatibility by removing two classes from dx.jar
. To change the android version just change the line with buildtools in project.properties
file:
(sdk.buildtools=25.0.3)
If you really need this library try to copy (example 25.0.3)
C:\Users\HI\AppData\Local\Android\Sdk\build-tools\25.0.3\lib\
to the folder
C:\Users\HI\AppData\Local\Android\Sdk\build-tools\32.0.0\lib\
You can find similar answers here: https://stackoverflow.com/a/43040723/4977439

Oleg
- 591
- 5
- 14
0
Same problem but different version here:
This is happened because dx files replaced with d8 files. Modify Android SDK Build Tools 32.0.0 by:
- In the Android SDK Build Tools 32.0.0 folder (example:
C:\Users\Me\AppData\Local\Android\Sdk\build-tools\32.0.0
), create a copy ofd8.bat
and rename it todx.bat
. - In the lib folder, create a copy of
d8.jar
and rename it todx.jar
.

diazwijaya
- 346
- 3
- 6