Riolu does not evolve by reaching a fixed level. It evolves into Lucario when it has high friendship and levels up, usually during the day in many games.