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
    -  local.properties
    -  proguard-project.txt

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

I am assuming that you have keystore created if not then follow my next post. Here,
    -  key.store is the path to your keystore.
    -  key.alias is the called name of your keystore.
    -  key.store.password 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 local.properties 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.

12 comments:

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

I have read your blog its very attractive and impressive. I like it your blog.

Java Training in Chennai Java Training in Chennai | Core Java Training in Chennai

Online Java Training Java Online Training | Java J2EE Online Training | JavaEE Training Institute in Chennai Java Training Institutes

Your blog content is really very informative and unique. Thanks for sharing the valuable blog. Core Java Training | Dot Net Training

Excellent post!!! Training on android technology helps professionals to establish a career in android mobile application development. Android Training in Chennai | Android Training

Mobile phone customers are growing regulated. Social orders are planning to use unmistakable applications on cell phones. Along these lines, start your business in android field. Being an Android creator would be the right way.
Thanks,
Android Training in Chennai | Android courses in Chennai | Mobile application development chennai


The strategy you have posted on this technology helped me to get into the next level and had lot of information in it. The python programming language is very popular and most widely used.
Python Training in Chennai | Python Course in Chennai

Your article is really valuable for me.Thanks for sharing your intellectual post.please share some more information about this.
Regards,
Android Training in Chennai | Android Course in Chennai

I appreciate you and I would like to read your next post.Thanks for sharing this webpage.
Regards,
Spring Training in Chennai | Spring course in Chennai | Spring Framework Training in Chennai

Excellent post!!!. The strategy you have posted in this technology helped me to get into the next level and had lot of information in it.
Android training in Chennai | Android course in Chennai

Thanks for sharing the information about the python and keep updating us.It is really useful to improve the knowledge on Python.
Python training in Chennai
python training


Thanks for your informative post on history of Java. This open source platform assists software developers to create stunning mobile application with ease. Further, they can make use of this platform at free of cost.
JAVA Training in Chennai|JAVA Course in Chennai|Best JAVA Training in Chennai

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More