首页 > 其他分享 >依赖 is already defined in a single-type import

依赖 is already defined in a single-type import

时间:2023-12-03 20:45:27浏览次数:27  
标签:already defined single 依赖 import StringUtils

  • 代码:import org.apache.commons.lang3.StringUtils;

  • 不加依赖显示:Cannot resolve symbol 'lang3',加了依赖又显示:'com.sun.deploy.util.StringUtils' is already defined in a single-type import

    • 这表明在代码或项目的其他地方已经导入了 com.sun.deploy.util.StringUtils,并且这个包和尝试导入的 org.apache.commons.lang3.StringUtils 产生了冲突,
    • 注意,也有可能是确实没引入别的依赖,但是 import 太多或者复制粘贴不小心写重了两个,注意检查看看
    • 可以选择清空重新加载依赖

标签:already,defined,single,依赖,import,StringUtils
From: https://www.cnblogs.com/zhu-ya-zhu/p/17873718.html

相关文章

  • .net7(.net core) 依赖注入:从 AddSingleton 注册的类里面访问 AddScoped 的问题
    记录一下以免忘记。今天从NopCommerce开源项目里面把它的任务调度类拆出来到我的项目用的时候,发现报错,报错信息如下Someservicesarenotabletobeconstructed(Errorwhilevalidatingtheservicedescriptor'ServiceType:OUC.Services.ScheduleTasks.ITaskSchedulerLi......
  • Requirement already satisfied解决办法
    python正常安装其他库后。pipinstallxlwings提示以下信息。Requirementalreadysatisfied:xlwingsinc:\users\zheng\appdata\local\programs\python\python38\lib\site-packages(0.30.12)Requirementalreadysatisfied:pywin32>=224inc:\users\zheng\appdat......
  • TypeError: Cannot read properties of undefined (reading '$modal')
    原代码:handleFinish(row){this.$modal.confirm('确认录取学生编号为"'+row.stuCode+'"的成绩?').then(function(){finishStudentScore({id:row.id}).then((response)=>{if(response.code==......
  • 使用emqttd时执行emqttd console时无反应或者报错Node undefined not responding to p
    1.无反应:  2.报错:Nodeundefinednotrespondingtopings. 解决办法:路径不能有空格,最好用存英文的路径。......
  • idea报错:XXX already exist in project. Please, specify another name.
    问题:idea报错:XXXalreadyexistinproject.Please,specifyanothername.并且左侧目录中并没有看见同名存在文件解决方法:1.打开File->ProjectStructure2.点击Modules->找到报错说存在的模块->点击减号删除->Apply->OK反思问题为什么存在应该是我在系统文件夹中之......
  • AddTransient、AddSingleton、AddScoped的区别
    权重:AddSingleton→AddTransient→AddScopedAddSingleton的生命周期:项目启动-项目关闭 相当于静态类 只会有一个 AddScoped的生命周期:请求开始-请求结束 在这次请求中获取的对象都是同一个 AddTransient的生命周期:请求获取-(GC回收-主动释放)每一次获取的对象都不......
  • NX二次开发UF_CAM_update_single_object_customization 函数介绍
    文章作者:里海UF_CAM_update_single_object_customizationDefinedin:uf_cam.h intUF_CAM_update_single_object_customization(tag_tobject_tag)overview概述Thisfunctionprovidsthefunctionalitytoupdatethecustomizationinformationofanobjecttobethesame......
  • 报错:undefined reference to `WinMain'
    报错:undefinedreferenceto`WinMain'错音是编译器找不到main()函数:可能缺少是main()函数,比如main拼写错误可能是main()函数不再全局命名空间中,注意main()函数必须置于默认命名空间(即全局命名空间)下......
  • 解决ls: relocation error: /lib64/libacl.so.1: symbol getxattr, version ATTR_1.0
    解决ls:relocationerror:/lib64/libacl.so.1:symbolgetxattr,versionATTR_1.0notdefinedinfilelibattr.so.1withlinktimereference参考:https://www.cnblogs.com/biohujun/p/17613372.html 这个问题是在我conda装了一个包之后就出现了,ls等最基础的命令没有办......
  • <Index onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > key=xxxx
    改了一下之前的程序,点开以后就出现了warn,初始加载页面是显示的然后切换到别的页面,就不显示了。 网上查了一下,有说是引用组件要驼峰,后来查了一下,不是这个原因。 想了一下是引入了一个对话框,然后就出现这种问题。究其原因:<template></template>下只能有一个root如果有多个......