A$AP Rocky[1] did not beat the rap in Sweden, because the judges in his assault case have found him guilty ... but he will NOT have to go to prison.

The 4 judges in the case issued their written ruling Wednesday ... concluding A$AP was guilty of assaulting a man during a street fight in Stockholm. The judges said Rocky, and his 2 friends who were also standing trial, "were not in a situation where they were entitled to self-defense."

The case hinged on whether A$AP threw a bottle at the victim during the all-out brawl[2] in late June. Prosecutors argued Rocky hurled the bottle and badly cut the guy, but they couldn't produce a single witness who saw a bottle fly during the melee. Rocky conceded he was holding a bottle for protection, but put it down and it never made contact with the guy.

The judges said prosecutors did not prove the bottle was used to hit the victim. As a result, the judges said the crime did not warrant any further time served, and added Rocky will NOT have to do community service.

Rocky got a suspended sentence ... meaning he'll have to pay various fees and fines, and if he does he's in the clear.  The judges felt Rocky and his co-defendants got ample punishment already with time served -- 1 month in a Swedish jail.

The upshot ... the court found hitting and kicking the victim while he was on the ground was a crime -- namely, assault --  because A$AP and his crew were not in danger of imminent harm, but prosecutors failed to prove the biggest

Read more from our friends at TMZ