This verse doesn’t contradict the fact that God forbade to eat from the knowledge of good and evil. First, the tree wasn’t created until God made the Garden of Eden where man was placed (Genesis 2:8). However, the fact is, the message in Genesis 1:29 isn’t all-inclusive, and its point is clear, and wasn’t meant to be taken technical as saying that absolutely any tree formed can be eaten, but in general.
