Hola Menna
We gave both options as correct here "odia los perros" and "odia a los perros" because, although we generally use the personal "a" with direct object that refer to people, it's also often used with animals, especially with pets, showing a more personal relationship with them. You may see it with or without a when talking about animals in general too.
Saludos
Inma