How do you get past the shaking tree in Pokemon emerald?

Use your watering can on it. The shaking tree won't like it and it will be a Sudowoodo try and catch it then you will be able to get into Smeargle Cave.