Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the 'dx' tool located in the Android SDK?

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.)

like image 546
Mellon Avatar asked Dec 20 '13 14:12

Mellon


People also ask

What is dx tool in Android?

The dx tool lets you generate Android bytecode from . class files. The tool converts target files and/or directories to Dalvik executable format (. dex) files, so that they can run in the Android environment.

Where are Android SDK tools installed?

by default, the "Android Studio IDE" will be installed in " C:\Program Files\Android\Android Studio ", and the "Android SDK" in " c:\Users\username\AppData\Local\Android\Sdk ".

How do I find Sdk tools?

Install the SDKClick Tools > SDK Manager. In the SDK Platforms tab, select Android 12. In the SDK Tools tab, select Android SDK Build-Tools 31. Click OK to install the SDK.

How do I know my Android SDK tool?

Navigate to “Appearance & Behavior” > “System Settings” > “Android SDK” and now you can see the SDK versions that were installed in the “API Level” and “Name” columns (focus on “API Level”).


2 Answers

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.

like image 57
Blackbelt Avatar answered Sep 18 '22 11:09

Blackbelt


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

like image 35
rajkabbur Avatar answered Sep 19 '22 11:09

rajkabbur