As a subject matter expert in Pokémon evolution, I can tell you that
Riolu evolves into Lucario at a specific condition rather than at a specific level. Here's the detailed information:
Riolu evolves into Lucario when it levels up during the
daytime while the player has
at least one Affection Heart with it from the Pokémon Contests or through various interactions that increase affection, such as petting it in Pokémon Contest mode or using high-fives and playtime in Pokémon HeartGold and SoulSilver or Pokémon X and Y.
read more >>