It means pursuing the wrong idea or blaming the wrong person. It comes from 19th-century American hunting, when dogs barked at a tree their prey had already escaped from.
Play the full Emoji Quiz: Guess the Phrase 15 questions · Medium · earn XP and climb the leaderboard