If your dog seems scared or hesitant around you, focus on improving your relationship. Ensure that the dog has a secure environment by making a safe, comfortable place for it in your home. Give your dog structure by training it and offering positive rewards. Once your dog feels cared for, it will bond with you easier. Take your dog for walks, play with it, and just let it be your companion. Over time, the dog will love your interactions.
Source: Wikihow