Flutter android GradleException显示红色报错解决办法 解决办法如下: throw new GradleException(...) 替换 throw new Exception(...) 然后你就发现红色报错没有了