@Olivier5,
The reason I refrained before Olivier, is that you appear to be more interested in the the question than the answer. I'll indulge you upon the chance that I am wrong, after all I have been before.
If you chart out the order of Genesis 1, you get the following overview of creation.
Day one – Heavens and earth are created. “Let there be light.” Day and Night.
Day two – Atmospheric waters separated from earth waters.
Day three – Land appears separating the seas. Vegetation is made.
Day four – Sun, moon, stars are made.
Day five – Sea life and birds are made.
Day six – Land animals, creeping things, and man (male and female) are made.
Genesis 1 is chronological order of events detailing Gods creation of the Earth, dividing them into 6 Yoms of creation.
Genesis 2 however is a more detailed expression of Day 6, detailing Gods preparation and implementation of man into the garden of Eden.
Keep in mind that there is no expression of chronology in Genesis chapter 2 whereas chronology and order were quite present throughout the rest of the Genesis account.
In verse 19, the source of the pupative contradiction, God had been creating animals and he now brings them to Adam to see what he would name them. It does not stipulate that Adam was lonely and so he created animals.
Rather this is the point where God had settled Adam in, and now he would begin his work for which the animals were pertinent to the story.
Of course I leave it to your scrutiny,