From 4d1def468f7b33632e3bb1fd327ed1fdf173d82f Mon Sep 17 00:00:00 2001 From: Peter Serwylo Date: Sat, 26 Apr 2014 07:52:18 +0930 Subject: [PATCH] Added build troubleshooting to README (Issue #17) --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index e73703c69..c7e4c4261 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,21 @@ You can also run the tests in Eclipse. Here's how: 5. Right-click on the **fdroid-test** project, then *Run As...* -> *Android JUnit Test* +Troubleshooting +--------------- + +When building F-Droid, the following error may occur: + +> Invalid file: extern/UniversalImageLoader/library/build.xml + +Check the output of the ./ant-prepare.sh command. This error is often accompanied by the following message: + +> Error: The project either has no target set or the target is invalid. +> Please provide a --target to the 'android update' command. + +The most likely cause of this is that you're installed Android SDK is missing the target version specified by one of the dependencies. For example, at the time of writing this, UniversalImageLoader requires the "android-16" API, however the default install of the Android SDK will usually only install the latest version ("android-19" as of writing). NOTE: While it may be tempting to add "--target=android-19" to the ./ant-prepare.sh script, it is not the correct solution. Although it may work, it can also cause strange bugs when the upstream library uses features of the earlier SDK. + + License -------