diff --git a/.gitmodules b/.gitmodules index 3b769a41a..ce53acad2 100644 --- a/.gitmodules +++ b/.gitmodules @@ -8,7 +8,7 @@ ignore = dirty [submodule "extern/AndroidPinning"] path = extern/AndroidPinning - url = https://github.com/binaryparadox/AndroidPinning.git + url = http://gitlab.doeg.gy/cpu/androidpinning.git ignore = dirty [submodule "extern/libsuperuser"] path = extern/libsuperuser diff --git a/README.md b/README.md index e73703c69..84868da82 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,31 @@ 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 your installed Android SDK is missing +the target version specified by one of the dependencies. For example, at the +time of writing this, UniversalImageLoader uses the "android-16" target API, +however the default install of the Android SDK will usually only install the +latest version ("android-19" as of writing). So you will have to install +the "android-16" target via the SDK manager. + +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 cause strange bugs at runtime. + + License ------- diff --git a/ant-prepare.sh b/ant-prepare.sh index 3752c823e..d4469f567 100755 --- a/ant-prepare.sh +++ b/ant-prepare.sh @@ -6,6 +6,10 @@ android update lib-project --path extern/MemorizingTrustManager android update lib-project --path extern/libsuperuser/libsuperuser android update project --path . --name F-Droid +{ echo -e "\nSuccessfully updated the main project.\n"; } 2>/dev/null + # technically optional, needed for the tests cd test android update test-project --path . --main .. + +{ echo -e "\nSuccessfully updated the test project.\n"; } 2>/dev/null diff --git a/extern/AndroidPinning b/extern/AndroidPinning index ce84a19e7..a0d713c61 160000 --- a/extern/AndroidPinning +++ b/extern/AndroidPinning @@ -1 +1 @@ -Subproject commit ce84a19e753bbcc3304525f763edb7d7f3b62429 +Subproject commit a0d713c6162b7016a3c3f55bcaefcdca4acacebd