There is a "1:7:2" rule in interpersonal relationships. No matter what you do, 10% of people will be hostile to you, 70% of people will be indifferent, and 20% of people will be friendly to you.
So, don't waste your energy on the 10% of people, trying to achieve "one day they will understand me", which will only consume a lot of your time and energy. You should spend your time on the 20% of people who like you and cherish them.
Sometimes, there is really no need for any reason for others to be unfriendly to you. There is no need to spend time maintaining this ineffective social interaction. Cherish those who like you...