Confused girl with confusing friendship
So I met this guy over 3 years ago, and I kind of liked him at the time but I wasn't ready to date, we were in a complicated environment, so we just settled into a friendship. Over the years he has been acting more and more interested in me, asking me personal relationship/love questions, initiating contact, etc.
I realized a while ago that I really like him a lot more than just a friend, and we talked about it but he said I misunderstood his attention and that he just like me as a friend.
I'm confused.. He made it clear now but how could I really misinterpret everything for so long?
Also, it's nice that things are not too weird between now but I'm still unhappy... I don't want to lose the friendship but it still feels like much more to me.
Any insights?