How to Use ant to compile the android open-source VOIP code sipdroid

Source: Internet
Author: User

Reproduced http://blog.csdn.net/bidgod/archive/2011/01/20/6155959.aspx

1.1 ant tool Introduction
Apache ant is a Java library and command-line tool that help building software are introduced on the official website.
You can refer.
1.2 use ant for compilation
Ant compilation depends on the build. xml file. If it is an eclipse-generated project, this file does not exist. Obviously, Google's support for ant compilation naturally won't allow us to manually generate the file. It has prepared the android Batch Processing Command for us:

The android. Bat tool under the Android-SDK-Windows \ tools directory can be called to generate the build. xml file of the sipdroid project. The call command is as follows:
Android update project-P.-T Android-8

After the call, the build. xml file will be generated in the corresponding directory for ant tool to compile the project.
Call the ant command in the directory containing buid. XML to complete compilation. The compilation result is as follows.

 

Use ant debug to generate an APK signed with the debug key. To compile with ant, install JDK and set the path and classpath environment variables.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.