Tuesday, 16 September 2014

Build android project using ANT Script

1)Set path for Java , Android tools , Android platform tools
2)Install Apache set path for it.You can also set from command prompt like
set ANT_HOME=C:\ANT\Ant\apache-ant-1.9.4-bin\apache-ant-1.9.4

Once Path is set ping for ANT command and check whether you get response.

Following steps to build project using ANT[Debug APK]

1)Following command in command prompt


Once this command is success  check your project files like build.xml , local.properties ..etc are generated

2)Next step is building an APK.
Following command to build debug version of APK
ant debug
Above command should be entered in the command prompt once you navigate to your project path

3)After this we get  message in command prompt as build successful , if build gets failed due to any reason just try ant clean and again give ant debug

4)Once build is successful you will get an APK in the bin folder of the project


Following steps to build project using ANT[Release Signed APK]


1)Following command in command prompt

Once this command is success  check your project files like build.xml , local.properties ..etc are generated

2)Add the following lines to your local.properties file

key.store=D:\\Android\\keyStore\\myfile
key.alias=myfile

3)Next step is building an APK.



Following command to build release version of Signed APK
ant release
Above command should be entered in the command prompt once you navigate to your project path

4)You will be prompted to enter password for key store .
Enter the required password and press enter.

5)After this we get  message in command prompt as build successful , if build gets failed due to any reason just try ant clean and again give ant release

6)Once build is successful you will get an Signed APK in the bin folder of the project

No comments:

Post a Comment

Pass a HashMap from Angular Client to Spring boot API

This example is for the case where fileData is very huge and in json format   let map = new Map<string, string>()      map.set(this.ge...