java 无法解析符号“StringUtils”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15077647/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-31 18:24:23  来源:igfitidea点击:

Cannot resolve symbol "StringUtils"

javaapache-stringutils

提问by AliBZ

I have downloaded "commons-lang-2.6.jar" and added to my java project but I can't use StringUtils. Is there another jar file I should download or I have to change something in the project structure?

我已经下载了“commons-lang-2.6.jar”并添加到我的 java 项目中,但我无法使用StringUtils. 我应该下载另一个 jar 文件还是我必须更改项目结构中的某些内容?

采纳答案by SLaks

You needto import the org.apache.commons.langpackage.

需要导入org.apache.commons.lang包。