Thursday, July 24, 2014

How to Compile an Android Project on Windows



1. Click the Windows 'Start' button and type 'cmd' in the search text box. Press 'Enter' to open the MS-DOS command line.

2. Type the following code to add the Java compiler directory to the Windows environment variable:set JAVA_HOME=c:\java\

Replace the '

' with the directory that contains your Android development software.

3. Compile the application. Use the following statement to compile your program:ant debug file.javaReplace 'file.java' with your own Android development package file.

4. Run the compiled code. To check for any bugs, type the following statement to run the application in the Droid emulator:adb install file.apkReplace 'file.apk' with your own compiled application.

No comments:

Post a Comment