The cost text must be green (meaning you have enough resources), and the stock must not be 0. If that wasn't the problem then I probably messed something up. Thanks for playing :) (Oh and also you click the upgrade's icon not the cost or something like that)