They are completely different.
This is the classic example of where the distinction between gerund and infinitive changes the meaning entirely. If you look in any good grammar book or on any good grammar site, the difference will be explained.
If you 'try to do' something, it is difficult for you to do that thing, but you are attempting it. You try to climb a mountain, you try to fix your bike, you try to improve your English. These things are hard for you to do, but you try to do them
'Try doing' something does not have the same meaning. It means to experiment with a solution to solve a problem. People might give you advice such as 'Try looking online' 'Try asking your friends' - these are not difficult things in themselves (it's easy to go online, it's easy to talk to your friends) but you do those as attempts to solve another problem.
I hope that's clear.