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;
相关文章
|
PHP
Fatal error: Can't use method return value in write context in
说明:   php环境测试会报错下面错误:Fatal error: Can't use method return value in write context in    解决方案:   首先检查自己的php版本,支付宝sdk和demo测试需要php5.5以上版本。
869 0
|
2月前
Could not find method debug()
Could not find method debug()
228 59
|
3天前
|
Java Maven
Cannot resolve method ‘success‘ in ‘Result‘
Cannot resolve method ‘success‘ in ‘Result‘
|
2月前
|
Web App开发 存储 移动开发
Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.异常处理
Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.异常处理
132 0
|
12月前
|
中间件 PHP
POST 419 ; message: “CSRF token mismatch.“, exception: “Symfony\Component\HttpKernel\Exception\HttpE
POST 419 ; message: “CSRF token mismatch.“, exception: “Symfony\Component\HttpKernel\Exception\HttpE
|
9月前
|
Java
【Java异常】Feign常见的坑总结之一:Method Not Allowed“,“message“:“Request method ‘POST‘ not supported“,“path“:“/*
【Java异常】Feign常见的坑总结之一:Method Not Allowed“,“message“:“Request method ‘POST‘ not supported“,“path“:“/*
140 0
|
Java Spring
【feign】Could not write request: no suitable HttpMessageConverter found for request type
【feign】Could not write request: no suitable HttpMessageConverter found for request type
394 0
|
XML Java 数据库连接
【Error】:BeanCreationException: Error creating bean(Could not resolve resource location)
【Error】:BeanCreationException: Error creating bean(Could not resolve resource location)
316 0
【Error】:BeanCreationException: Error creating bean(Could not resolve resource location)
|
Java Android开发
The method call() of type XXX must override a superclass
The method call() of type XXX must override a superclass
87 0
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘
Cannot resolve method ‘isBlank‘ in ‘StringUtils‘