You have to max out every Friendship stat.
Kindness is the stubborn one. Applejack's minigame is the only dependable way to raise it: play on Easy, collect apples until Snips and Snails have been chased off about five times, then let the round end. Repeat until the Kindness bar is full.
It takes ages, but it is still the fastest route there is.