使用java.lang.String报错之Expected 0 arguments but found 1 报错原因翻译过来是: 预期 0 个参数,但发现 1 个 出错的原因是: 导入错误的包,如下 解决办法: 导入正确的包,即可。如下