Instead of using eclipse to create an Android project, there is a way to create android project with commands. In such a way, the project can be built with ant.

android create project –target –name MyFirstApp \
–path /MyFirstApp –activity MainActivity \
–package com.example.myfirstapp

If u already create an project with eclipse, below command can be used to turn it to automated type.
android update project –target 8 –path MyProjects/NowRedux

ref:
http://stackoverflow.com/questions/15713871/taskdef-class-com-android-ant-setuptask-cannot-be-found-using-the-classloader-an
http://developer.android.com/training/basics/firstapp/creating-project.html

to specify keystore/alias/password etc, the file is local.properties and project.properties

key.store=<keystore path>
key.alias=<alias>
key.store.password=<pass>
key.alias.password=<pass>

Advertisements