If you stuck with some issue, sometimes it takes a lot of time to find a solution. You should research documents, stackoverflow, articles, watch videos, etc
Meanwhile, It's much more effective to ask some like-minded person who already solved that issue...