Ubuntu 10.10 - android: command not found

Basic Tutorials concerning: GUI, Views, Activites, XML, Layouts, Intents, ...

Ubuntu 10.10 - android: command not found

Postby GunNam » Sat Mar 26, 2011 2:42 am

Hello - My apologies if this is in the wrong forum, I couldn't decide where it would best fit.

I am interested in Android programming so I followed the instructions on http://developer.android.com/sdk/installing.html to install the environment on my computer...

I just installed the JDK, SDK, Eclipse successfully (or I assume):
* When I get to Step 4 where I'm supposed to run 'android' it will not run. I get the error message "android: command not found" (I am definitely in the right directory).
** When I double-click it in nautilus, it opens up in gedit. I can set the permissions in nautilus (through the properties - Allow executing file as a program) and get it to work, but this is really bugging me.

Can someone point me in the right direction as how I can run scripts like this from the command line?

I have been using Ubuntu for a couple years, but just as a desktop to check email, browse the web, etc...
My system:
Intel i7
Ubuntu 10.10 Maverick Meerkat
android-sdk-linux-x86
eclipse 3.6.2
GunNam
Freshman
Freshman
 
Posts: 5
Joined: Sat Mar 26, 2011 2:24 am

Top

Re: Ubuntu 10.10 - android: command not found

Postby TriggerHappy » Sat Mar 26, 2011 10:30 pm

Once you cd to the /tools directory, try ./android instead of just android.
TriggerHappy
Freshman
Freshman
 
Posts: 2
Joined: Sat Mar 26, 2011 10:27 pm

Re: Ubuntu 10.10 - android: command not found

Postby GunNam » Sat Mar 26, 2011 10:47 pm

I'm at work now but I'll definitely try that when I get home.
Do you know where I can find more information on why I need to execute the command in that fashion? Is this bash?

I was kind of close... I tried ".android" and "/android" but not the one you posted.
I have a good feeling about this... now I can't wait to go home. Thanks!
My system:
i7-2600 @ 3.40 GHz
Ubuntu 10.10 (maverick)
GunNam
Freshman
Freshman
 
Posts: 5
Joined: Sat Mar 26, 2011 2:24 am

Re: Ubuntu 10.10 - android: command not found

Postby TriggerHappy » Sat Mar 26, 2011 10:55 pm

Not sure why, but that's what works for me.
TriggerHappy
Freshman
Freshman
 
Posts: 2
Joined: Sat Mar 26, 2011 10:27 pm

Top

Return to Novice Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests