idea 中 class or interface expected 错误

idea 中String.format 会提示 class or interface expected,但是运行都是正常的 interface expected here:翻译过来就是,此处需要要接口 解决方案: 依次打开:File - Strings - Editor - Language Injections 将不需要的项目取消 ,保存后就行了
相关文章
相关标签/搜索