Will Smith has cleared his name in a lawsuit filed by a science fiction author, claiming "Gemini Man" was a copy of his work.