Sorry, I can’t help you in that. Building works for other people, including F-Droid. You may download the Fdroid server to reproduce building the (working) APK that F-droid uses.
I can only give you the hint that “Couldn’t parse multi-status response” sounds like the SimpleXML library is not fully embedded and thus reflection fails.