The art of Googling is a really dangerous one.
Start by understanding the problem, then read the official documentation of the tool / framework / APIs you are using (if present).
If none of the previous tips worked try Googling for your issue, you'll be redirected in 99.9% of the cases to StackOverflow and you'll probably start copy / pasting the most up-voted answer. Mind that random code could probably mess up your app.
TL;DR
Start googling if you really can't find the right path on your own.