I know I could develop android apps in eclipse, but I wanted to try my hand at doing all of the grunt work (i.e., command line) before I try that. So I created an android project with a command like:
- Code: Select all
android create project --package com.android.helloandroid --activity HelloAndroid --target 2 --path <path-to-your-project>/HelloAndroid
(with necessary tweeks)
The problem is, when I run "ant debug", I get this:
- Code: Select all
C:Users---DocumentsAndroid ProjectsSandbox>ant debug
Buildfile: C:Users---DocumentsAndroid ProjectsSandboxbuild.xml
[setup] Project Target: Android 2.1
[setup] API level: 7
[setup] WARNING: No minSdkVersion value set. Application will install on all
Android versions.
-compile-tested-if-test:
-dirs:
[echo] Creating output directories if needed...
[mkdir] Created dir: C:Users---DocumentsAndroid ProjectsSandboxge
n
[mkdir] Created dir: C:Users---DocumentsAndroid ProjectsSandboxbi
n
[mkdir] Created dir: C:Users---DocumentsAndroid ProjectsSandboxbi
nclasses
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
-aidl:
[echo] Compiling aidl files into Java classes...
compile:
[javac] C:No Install Program Filesandroid-sdk_r05-windowsandroid-sdk-wind
owsplatformsandroid-7templatesandroid_rules.xml:248: warning: 'includeantrun
time' was not set, defaulting to build.sysclasspath=last; set to false for repea
table builds
[javac] Compiling 2 source files to C:Users---DocumentsAndroid Proj
ectsSandboxbinclasses
-dex:
[echo] Converting compiled files and external libraries into C:Users---DocumentsAndroid ProjectsSandboxbinclasses.dex...
[echo]
[apply] =C:Users---DocumentsAndroid was unexpected at this time.
BUILD FAILED
C:No Install Program Filesandroid-sdk_r05-windowsandroid-sdk-windowsplatform
sandroid-7templatesandroid_rules.xml:259: The following error occurred while
executing this line:
C:No Install Program Filesandroid-sdk_r05-windowsandroid-sdk-windowsplatform
sandroid-7templatesandroid_rules.xml:123: apply returned: 255
Total time: 2 seconds
Does anybody know the cause of this error?
Thanks in advance.


