Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Since I've downloaded the Android development kit as a package (sdk, eclipse bundled together), I extracted it into /opt/android/sdk

I ran the command nano ~/.bashrc command and opened the file. Now I set the path as below

export PATH=${PATH}:/opt/android/sdk/tools
export PATH=${PATH}:/opt/android/sdk/platform-tools
export ANDROID_SDK_HOME ={PATH}:/opt/android/sdk

But it doesn't seem to help at all, when I run ddms in command prompt I get error message saying no command ddmds found.

If we set the path variable in windows correctly the ddms command would work correctly. I assume its a problem with the way I set the path.

Can someone please help me out. Thanks.

share|improve this question
    
In case you weren't aware, Google have made a (pre-release stages) all-in-one IDE and SDK handler called Android Studio. –  ir-g Jun 15 '13 at 14:39
add comment

2 Answers 2

up vote 1 down vote accepted

I don't know what happened as I don't know much technical details behind it. but I removed the following line

export ANDROID_SDK_HOME ={PATH}:/opt/android/sdk

and restarted the terminal and ran ddms it worked.

share|improve this answer
add comment

The correct configuration in your case would look like this:

export ANDROID_HOME=/opt/android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Note that the environment variable is called ANDROID_HOME, not ANDROID_SDK_HOME. Also, the third line in your sample was missing a $ sign (and contained an additional space). Lastly, there is no need to repeat the same path (DRY) - just use the already defined variable.

share|improve this answer
    
This works. I am confirming for Ubuntu 14.04 –  ramdaz Jun 29 at 21:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.