Gotham Knights has plenty of powerful skills and abilities locked behind character level, and the players who want to get those fast will need to earn a lot of XP. There are plenty of things to do in Gotham Knights, from finding Talon Caches to solving puzzles and beating up gangsters, and while all of them reward XP, some give more than others. With 30 levels to achieve (40 in New Game+) and a whole city of crime, sometimes efficiency is the best way forwards.
The three best ways for the player to earn XP are to complete the main story of Gotham Knights, take care of premeditated crime, and do some challenges. Somewhat obvious, but these three activities give the player the most XP for their time played, the main story especially. If the player wants, they could be even more efficient and skip through every cutscene, but the story in Gotham Knights doesn't take that long, and it's a worthwhile story in itself.
Best Ways to Earn Experience
First off, again, there's the main story. The player will get through it quickly and will be practically swimming in experience as they do so. They'll fight a variety of enemies from Gotham's different gangs, and several prominent members of Batman's rogue gallery appear as boss fights in the game. Those are the best, as bosses always give good payouts of experience and provide new, interesting challenges for the player to overcome.
Next on the list is Premeditated Crime. The player gains access to the open world after they have beaten the first mission, and once unlocked Gotham Knights Premeditated Crimes will pop up occasionally. Put in a bit of legwork, interrogate people and scope out what the gangs are planning, and the player will be rewarded with loot and items in addition to a large payout of experience points. The gear and resources won from these things is nothing to scoff at on their own, but can make it easier to gather more xp. Be sure to try for the Premeditated Crimes' bonus objectives, but don't over-prioritize them, as it might be more efficient to just complete one Crime and then go for the next.
Finally, there are the in-game Challenges, these challenges provide the player with rewards for doing a variety of different tasks, and the best ones come from Contacts. From Detective Montoya to Lucius Fox, they're willing to help the player in exchange for fighting crime or unlocking the fast travel point in Gotham Knights. These challenges, found through the Batcomputer, offer bonus xp just for playing the game.