My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
WikiPageBuild  
Simple build instructions.
Featured
Updated Dec 13, 2011 by jdlabo...@gmail.com

Introduction

There are many ways to manage and build an Android project. Here we provide one way from the command line that's easy and straight forward.

Details

These instructions are to build the .apk on a Linux box with the following installed:

  • Apache ANT
  • Java Development Kit (JDK)
  • Android SDK

The first step after getting a local copy of the code is to create a new Android project from it. This is done using the command:

android update project --name <project_name> --target <target_ID> --path <path_to_the_code>

Example:

android update project --name AFLogical-OSE --target 6 --path /projects/AFL-OSE/

Now the code can be built in debug mode by changing to the root of the project directory and issuing the ant debug command.

Example:

cd /projects/AFL-OSE/
ant debug

And that's it! The .apk file should be built in the project's bin/ directory and ready to go for testing / use.


Sign in to add a comment
Powered by Google Project Hosting