Davonte Jackson was sentenced Monday to two to four years in prison. He was given credit for 242 days served.
Jackson earlier pleaded guilty to attempted robbery in connection to the January incident. Lincoln police say he drove a getaway car for two teenagers accused of breaking into an apartment and demanding money from the people inside.
A man was shot in the chest during the robbery. He was treated at a hospital and later released.
The two teenagers were later arrested. They have entered pleas in their cases and are scheduled to be sentenced in January.