I know that heat energy can be calculated by $I^2 R t$. Therefore, it's directly proportional to resistance.
However,
$$I^2 R t = \frac{V^2}{R}t$$
In this case, won't the heat energy be inversely proportional to the resistance? Won't these 2 statements contradict each other?