local.properties contained the following lines: > ndk.dir=$ANDROID_NDK > ndk-location=$ANDROID_NDK After removing them, all went well. Also see https://gitlab.com/fdroid/fdroidserver/issues/171