Wednesday, January 2, 2013

Create Signed Build of Android Application using Ant Script

If you want to create a signed build of the Android Application using Ant Script then follow the following procedure.

As mentioned in the previous post Build Android Application Using Ant Script following files were created in the project:
    -  build.xml
    -  proguard-project.txt

Now, open the file and add the following information:
    -\\Users\\Soofia faruq\\Desktop\\Keystore\\market.keystore
    -  key.alias=marketKeystore
    -  key.alias.password=android

I am assuming that you have keystore created if not then follow my next post. Here,
    - is the path to your keystore.
    -  key.alias is the called name of your keystore.
    - and key.alias.password are optional.

If you want to keep the password secret then you don’t have to mention it here but during execution of >ant release command you will be prompted for password.

Save the and execute the >ant release command from command prompt:

You can now find the signed and aligned .apk (ApiDemos-release.apk) file in the bin folder of the project.


In the event that you are intrigued to land a position in programming field implies get venture into FITA. They are putting forth an awesome preparing with best MNC specialists and preparing will be useful to land position in IT industry.
JAVA Training in Chennai | JAVA course in Chennai | J2EE Training in Chennai

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More