Downloading and Installing Apache Ant 1.9

This section describes how to download and install Apache Ant 1.9.5 on a Windows system. Apache Ant is a popular Java application build tool that allows you to automate the Java application build process.

To develop Android applications in Java language, you also need to install Apache Ant, which is a popular Java application build tool that allows you to automate the Java application build process.

Here is what I did to download and install Apache Ant 1.9.5 on my Windows system.

1. Go to Apache Ant home page: http://ant.apache.org/ and click "Download / Binary Distributions" in the menu.

2. Click the link "apache-ant-1.9.5-bin.zip" next to ".zip archive:" in the "Current Release of Ant" section to start download.

3. Save the download file to C:\download\apache-ant-1.9.5-bin.zip and wait for the download to finish.

4. Unzip C:\download\apache-ant-1.9.5-bin.zip to folder C:\local\apache-ant-1.9.3.

5. Set JAVA_HOME as a system environment variable to point to the JDK 1.8 home folder:

set "JAVA_HOME=C:\Program Files\Java\jdk1.8.0_45"

To verify the installation, open a command window to try the "ant" command. If you are getting the following output, your installation is done correctly:

C:\herong>\local\apache-ant-1.9.5\bin\ant -version
Apache Ant(TM) version 1.9.5 compiled on May 31 2015

Last update: 2015.

Table of Contents

 About This Book

 Installing JDK 1.8 on Windows System

 Installation of Android SDK R24 and Emulator

Installing Apache Ant 1.9 on Windows System

Downloading and Installing Apache Ant 1.9

 Preparations on Using Apache Ant Tool

 First Apache Ant Build File Example

 Developing First Android Application - HelloAndroid

 Android Application Package (APK) Files

 Android Debug Bridge (adb) Tool

 Android File Systems

 Android 4.0.3 File Systems

 AboutAndroid - Application to Retrieve System Information

 android.app.Activity Class and Activity Lifecycle

 View Objects and Layout Resource Files

 Using "adb logcat" Command for Debugging

 Build Process and Package File Content

 Building Your Own Web Browser

 Android Command Line Shell

 Samsung Galaxy Tab 3 Mini Tablet

 USB Debugging Applications on Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Outdated Tutorials

 References

 PDF Printing Version