The, "Girls like jerks" thing comes from a seeming contradiction that can seem very real to someone who isn't emotionally savvy and has trouble understanding/forming relationships, especially romantic ones. We've seen the story a thousand times:
Girl confides in Nice Guy about how her boyfriend is a jerk and she wishes boyfriend were nicer to her.
Nice Guy can't understand why she complains about jerk boyfriend when he, a perfectly Nice Guy is right there, lonely and happy to be her boyfriend if only she were interested in him.
Girl stays with jerk boyfriend, leading the Nice Guy to believe that the girl he's so interested must be crazy, have her head up her ass or is not logical.
What Nice Guy fails to realize is the level of her boyfriend's jerkiness is of only marginal consequence and he likely has a ton of other much more desirable traits. Maybe he's funny, attractive, fun, makes money and is popular. Nice Guy might be genuinely nice but lacks every single one of these other desirable traits. Since Nice Guy only ever hears from girl that jerky boyfriend is an ass, he assumes she prizes Niceyness above these other considerations and lacks the emotional maturity to realize his error.
Nice Guy goes on to assume women like assholes and becomes asshole, which makes him even less desirable, causing even more confusion.
Nice Guy goes from thinking of girls as emotional instead of logical to just thinking they are crazy, and though he desires female company, feels jilted, is consumed by his own social impotence and gives up on trying to be Nice at all, ditching even the "cocky-asshole" facade and just turning into a reprehensible ass because he's given up hope of courting a girl, doesn't understand his mistakes and now has real venom for the opposite sex, often resulting in him becoming a dyed in the wool misogynist.
So, do girls like jerks? Sure, if they have a bunch of other desirable traits that outweight their jerkiness.
To Nice Guys everywhere, I beseech thee. If you want to gain the attentions of the female do not assume being nice is your ticket. Be a well rounded, interesting person who isn't a self-obsessed ass-wipe. Being social is a skill, develop it. Entitlement is a turn off, ditch it. Lamenting your failures will get you no-where. And if you listen to nothing else I have to say, heed this: if you want to have a relationship the best way to attract women is to treat them like people. No, not like a princess, not like a plaything. All that messed up stuff in your head you think and feel? She thinks and feels that stuff to.
So, be Nice, Nice Guys, but be more than that. Don't reinvent yourself to be someone you're not, just be a better version of who you are.
Sincerely, a Genuinely Nice Guy who was once confused like the rest of you but grew up and got married to a hot, nerdy woman.