Nonviolent methods often require the possibility of violence as a backdrop to be effective. Otherwise, they might not yield the desired results.
While Gandhi's philosophy sounds nice in theory, it may not always be the most practical in real-world scenarios.
You do know his philosophy worked, right?
Just imagine getting independence 5 years earlier by nationwide violent uprisings and non-cooperation moment together. Britain was already fighting on multiple fronts during WW2, it was a plausible path to early independence.
Sure we saved some lives that would've been lost in violent uprisings, but we lost just as many if not more from inaction.
By a cyclone, accidents, and japanese blockades, the independent states suffered more because of poor infrastructure, lastly it was only known to Britain come August '43 whereupon 150,000 tonnes of wheat were redirected from Iraq and Aus.