ant-prepare.sh error: project has no target set
After a fresh clone of the repo and running git submodule update --init without errors, running ./ant-prepare.sh shows an error about invalid target:
+ android update lib-project --path extern/UniversalImageLoader/library
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.
Trying to compile then shows an error:
BUILD FAILED
/home/ubuntu/android-sdk-linux/tools/ant/build.xml:601: Invalid file: /home/ubuntu/fdroidclient/extern/UniversalImageLoader/library/build.xml
The error can be fixed by adding a --target to each android update command in ant-prepare.sh:
android update lib-project --path extern/UniversalImageLoader/library --target android-19
android update lib-project --path extern/AndroidPinning --target android-19
android update lib-project --path extern/MemorizingTrustManager --target android-19
android update project --path . --name F-Droid --target android-19
Compiling is then successful.