8

I have installed the latest Android SDK just now.

But I can't find the dx tool (which is used to convert .class to .dex file). Neither under platform-tool/ nor under tools/. Where can I find my dx tool then?

(With Android SDK Manager in Eclipse, I have installed Android SDK Tools, Android SDK Platform Tools, Android SDK Build Tools, and All the Android platforms from API 3 to API 19.)

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Mellon
  • 37,586
  • 78
  • 186
  • 264

4 Answers4

7

The dx tool is located inside build-tools/android-{version}.

From the shell you can type ./dx if you are inside the directory android-{version}, and the whole path to dx otherwise.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Blackbelt
  • 156,034
  • 29
  • 297
  • 305
1

I found it under "android-sdk\build-tools\any-sdk-build-tool-version".

rajkabbur
  • 187
  • 3
  • On [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows)? Can you provide an *example* of a *full* path? Please respond by [editing (changing) your answer](https://stackoverflow.com/posts/30093757/edit), not here in comments (***without*** "Edit:", "Update:", or similar - the answer should appear as if it was written today). – Peter Mortensen Jul 30 '21 at 11:33
0

You will find it in \platforms\any-platform\tools\dx.bat.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Infinite Recursion
  • 6,511
  • 28
  • 39
  • 51
  • I don't have tools/ folder under /platforms/any-platform/ – Mellon Dec 20 '13 at 14:31
  • This seems to be on [Windows](https://en.wikipedia.org/wiki/Microsoft_Windows) (backslashes and the file extension "bat"). Can you provide an example of a *full* path? Please respond by [editing (changing) your answer](https://stackoverflow.com/posts/20705816/edit), not here in comments (***without*** "Edit:", "Update:", or similar - the answer should appear as if it was written today). – Peter Mortensen Jul 30 '21 at 11:31
0

From future:

dx tool was replaced by d8 with several improvements, it can be found at

build-tools/{{version}}/d8

For more information about dx to d8 transition visit next link