The obvious example I have in mind is Galileo Galilei - but I'm curious if there were other, lesser known, cases of ingenious people getting into trouble with the church.
Hello, I wrote an answer here about how important science was to the early medieval Church, and how the Church was responsible for the survival of much scientific knowledge.