First Solar Inc. won’t be building the world’s largest solar plant in China after more than four years of negotiations on pricing failed to produce an agreement.