Cannot resolve method ‘mainName‘ in ‘FileUtil‘

简介: Cannot resolve method ‘mainName‘ in ‘FileUtil‘

使用utils的时候出现了这样一个如何解决

这里使用的是hutool

第一步引入依赖,Maven刷新一下:

        <dependency>
            <groupId>cn.hutool</groupId>
            <artifactId>hutool-all</artifactId>
            <version>5.8.18</version>
        </dependency>

第二步  保证 引入的是这个import

import cn.hutool.core.io.FileUtil;
相关文章
|
4月前
|
缓存 Dart 开发工具
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
解决Flutter报错The method ‘File.create‘ has fewer named arguments than those of overridden method
68 3
|
4月前
|
API
Error: The method ‘DioHttpHeaders.add‘ has fewer named arguments than those of overridden method
Error: The method ‘DioHttpHeaders.add‘ has fewer named arguments than those of overridden method
23 3
|
5月前
|
Java Maven
Cannot resolve method ‘success‘ in ‘Result‘
Cannot resolve method ‘success‘ in ‘Result‘
The method getServletContext() is undefined for the type HttpServletRequest
The method getServletContext() is undefined for the type HttpServletRequest
237 0
|
XML Java 数据库连接
【Error】:BeanCreationException: Error creating bean(Could not resolve resource location)
【Error】:BeanCreationException: Error creating bean(Could not resolve resource location)
382 0
【Error】:BeanCreationException: Error creating bean(Could not resolve resource location)
Could not resolve element type of Iterable type xxxxx.RequestParam java.util.List<?>. Not declared?
Could not resolve element type of Iterable type xxxxx.RequestParam java.util.List<?>. Not declared?
Could not resolve element type of Iterable type xxxxx.RequestParam java.util.List<?>. Not declared?
|
Java Android开发
The method call() of type XXX must override a superclass
The method call() of type XXX must override a superclass
112 0
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
|
Web App开发 Java Apache
java.lang.IllegalStateException: getOutputStream() has already been called for this response
https://stackoverflow.com/questions/33982515/handlerinterceptor-getoutputstream-has-already-been-called-for-this-response http://blog.
3836 0