Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Export signed application package with command line

Tags:

android

Until now i make an apk file in the normal way: Andoid tools -> Export signed application package...

and there i give the key and the alias and than it make my apk file that i post in the market.

now i want to do the same thing with a terminal

I try to use the ant with : ant release command but it give me an unsigned application package.

like image 703
YosiFZ Avatar asked Dec 11 '11 14:12

YosiFZ


1 Answers

If you add lines of the following form to your build.properties file (SDK pre 14) or ant.properties file (SDK 14 and beyond)

Then the if you call 'ant release' the signing with the correct passwords will be automatically done for you

(Assuming your release keystore is at : c:/users/you/my-release-key.keystore and your release key's alias is : your_release_alias)

key.store=c:/users/you/my-release-key.keystore
key.alias=your_release_alias
key.store.password=YourKeystorePassword
key.alias.password=YourKeyaliasPassword

.

like image 51
NickT Avatar answered Oct 19 '22 18:10

NickT