From: Mi Yang (杨觅) <yangmich...@gmail.com>
Date: Sep 17 2009, 9:32 pm
Subject: 这个是命令行建立并编译一个helloworld的过程记录,可供参考
To: bigbull - 大牛
D:\Document\workspace>android create project --target 2 --path ./
myProject
--activity MyActivity --package com.example.myproj
ect
Created project directory: D:\Document\workspace\myProject
Created directory D:\Document\workspace\myProject\src\com\example
\myproject
Added file
D:\Document\workspace\myProject\src\com\example\myproject
\MyActivity.java
Created directory D:\Document\workspace\myProject\gen\com\example
\myproject
Created directory D:\Document\workspace\myProject\res
Created directory D:\Document\workspace\myProject\bin
Created directory D:\Document\workspace\myProject\libs
Created directory D:\Document\workspace\myProject\res\values
Added file D:\Document\workspace\myProject\res\values\strings.xml
Created directory D:\Document\workspace\myProject\res\layout
Added file D:\Document\workspace\myProject\res\layout\main.xml
Added file D:\Document\workspace\myProject\AndroidManifest.xml
Added file D:\Document\workspace\myProject\build.xml
Created directory D:\Document\workspace\myProject\tests
Created directory
D:\Document\workspace\myProject\tests\src\com\example\myproject
Added file
D:\Document\workspace\myProject\tests\src\com\example\myproject
\MyActivityTest.java
Created directory
D:\Document\workspace\myProject\tests\gen\com\example\myproject
Created directory D:\Document\workspace\myProject\tests\res
Created directory D:\Document\workspace\myProject\tests\bin
Created directory D:\Document\workspace\myProject\tests\libs
Added file D:\Document\workspace\myProject\tests\AndroidManifest.xml
Added file D:\Document\workspace\myProject\tests\build.xml
D:\Document\workspace>cd myProject
D:\Document\workspace\myProject>ant debug
Buildfile: build.xml
[setup] Project Target: Android 1.5
[setup] API level: 3
dirs:
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\Document\workspace\myProject\bin\classes
resource-src:
[echo] Generating R.java / Manifest.java from the resources...
aidl:
[echo] Compiling aidl files into Java classes...
compile:
[javac] Compiling 2 source files to
D:\Document\workspace\myProject\bin\classes
dex:
[echo] Converting compiled files and external libraries into
bin/classes.dex...
package-resources:
[echo] Packaging resources
[aaptexec] Creating full resource package...
debug:
[apkbuilder] Creating MyActivity-debug.apk and signing it with a debug
key...
[apkbuilder] Using keystore: C:\Documents and
Settings\myang\.android\debug.keystore
BUILD SUCCESSFUL
Total time: 13 seconds
D:\Document\workspace\myProject>
No comments:
Post a Comment