| How to build .apk file from command line |
|
|
|
| Wednesday, 29 June 2011 14:32 |
|
If you don’t want to install a number of programs for building your Android project, this article is for you. You will need only JDK, the Android SDK platform tools and minimum Android platform for building the project using the batch file.
Written by: Podymskyy Denys
1. IntroductionIn this article, I will describe how to use the Android tools for building the .apk file using the command line. As a result, you can use the batch file for building your Android application. I use Windows commands in this article. But you can use the same Android commands and tools and the same program if you are working on Linux OS. The example of the script for Linux OS is included in the sample project, attached to this article. 2. PreparationYou must install Java JDK and Android SDK on the system where you will build your Android application using the Windows command line. The private keystore also must be present. 2.1 Java JDKYou can use Java JDK from Eclipse or download it from this link: http://www.oracle.com/technetwork/java/javase/downloads/index.html and then install it. 2.2 Android SDKAndroid SDK and its HOWTO document are available here: http://developer.android.com/sdk/index.html. The Android SDK Platform-tools, SDK Platform Android 2.2, and API 8 are the minimum that is needed for the test project work. The complete article text is available only for the registered users. Please Log In or Register. |






