Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

linux command "android" : equivalent in Windows?

i'm use to linux environment but at the moment i have to develop an android app under a windows environment.

So i need to run the "android" command ( android.bat ) in the windows prompt ( located in $ANDROID_HOME/tools/ ) in order to add ant script and do other stuffs.

the thing is that this launches me the Android SDK Manager, instead of giving me command line answer lie : "project updated"... So my question is :

How do i run the android command under Windows ?? to run things such as :

android update project --path

Maybe i'm not running the right bat file ? I did many search over the internet, without finding any answers.

I managed to make work Ant perfectly though, with the "ant.bat" that is located in the ant directory

EDIT :

Problem solved.

instead of typing :

android update project --path XXX

in the $ANDROID_HOME/tools/ directory, which would open me the SDK Manager, i had to do :

android.bat update project --path XXX

like image 744
user1987343 Avatar asked Nov 13 '22 13:11

user1987343


1 Answers

You can make it even easier by setting the ANDROID_HOME environment variable to the path to the sdk directory and then adding the paths for tools and platform-tools to your system PATH environment variable.

Then you can run the command android instead of android.bat from the command line, as you are used to, without having to type the full path or change to the sdk directory.

There are instructions for setting Windows environment variables here.

like image 101
jantzl Avatar answered Nov 15 '22 04:11

jantzl