0

I am new to Android and the Ant based build process. I want to build the project barcode scanner zxing hosted in the google code. I downloader the source and followed the build procedure in the wiki. The project builds at the root level but I get an error when I perform ant operation inside the android folder. The commands I used are as in wiki:

cd ../android 
ant debug 
ant install

The error is :

BUILD FAILED /Users/StackUnderflow/Projects/zxing-read-only/android/build.xml:98: Cannot find /path/to/android-sdk/tools/ant/build.xml imported from /Users/StackUnderflow/Projects/zxing-read-only/android/build.xml

How and where do I set the path to the android-sdk the ant build is looking for? The build process produces an ZXing-2.2.zip but how do I build an apk file to load in the device?

4

1 回答 1

2

错误就在那里说。你没有遵循这一步,或者更确切地说,你没有改变路径!

echo "sdk.dir=/path/to/android-sdk" > local.properties
于 2013-04-14T09:40:29.873 回答