This is a good question that people have explored for many years, and the best answer is probably that you need to try to understand how someone is perceiving you and treat them with respect and kindness.  Unfortunately, it’s hard to change how people view you, or even if they are still actively disliking you – trying to get them over it is a difficult endeavor.  You may wish to try to make your relationship as good as it can be, but it’s not possible in all cases to get someone to like or accept you.
assistant
Just like you likely wouldn’t want to get close to a person who treated you poorly, it’s probably best if other people don’t like you either if you’re going to treat them that way.  But keep in mind that relationships are a two-way street, and if you try to behave in ways that make people want to get close to you, others will very likely enjoy your company and want to remain your friend.  So rather than trying to make people dislike you, why don’t you try listening to what people say, being honest and respectful with your words, and treating others with kindness and compassion?
assistant
How do you get someone to not like you?
user