LeBron James scored 20 points but could not prevent the Los Angeles Lakers from falling to a 114-111 loss to the Brooklyn Nets in Shanghai.