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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With