Why can't my units get more than 30 XP?

My units get to 30 XP and then stop earning experience. Any idea why?


Solution 1:

Experience gained from combat with barbarians is capped at 30 xp. You need to fight city-states or other players to go beyond level 3.