i want to create .apk file from command prompt. for this i follow this link
and try to complete it with ant..but it is giving me error.
taskdef class com.android.ant.setuptask cannot be found
can any one please help me what mistake i am doing or provide me a step by step tutorial for this.
thanks in advance...
You need to pass sdk.dir into ant, i.e.
ant -Dsdk.dir=<path to Android SDK>
You'll also need to specify one of the seven or so Android build targets because the default build target is 'help'.
If you just run
ant -Dsdk.dir=<path to Android SDK>
, you'll get some help output, like so:To build the APK, you have to specify
debug
orrelease
.ant -Dsdk.dir=<path to Android SDK> debug