Reputation: 550
I've created a android project using eclipse. But I needs to do that same using command line. So, I use below command
> android update project --path .
> ant clean debug
Using above command its created-- Welcome-debug.apk and WelCome-debug-unaligned.apk I also write the ant.properties file below-
key.store=./mykey.keystore
key.alias=MA
key.store.password=mypassword
key.alias.password=mypassword
now when I tried to build release version-
> ant relase
Unfortunately its not creating any release file. How do i create the release version using command line.
Expecting your response.
Thanks, Pijman
Upvotes: 0
Views: 171
Reputation: 46943
You have a typo: it should be ant release
.
You don't need to do anything specific. ant clean release
should do the trick. However, note the clean
target: ant is lazy and is trying to skip as much of the work as possible - thus if you do not clean it will not recreate the class files and you will actually pack an apk featuring the debug compiled files.
Upvotes: 1