The previous approach with testCompile project("smack-java7") was flawed. Instead we setup a Base64 encoder especially for the unit tests now.