检查您的模块类路径是否缺少或冲突的依赖项 [英] Check your module classpath for missing or conflicting dependencies

查看:1652
本文介绍了检查您的模块类路径是否缺少或冲突的依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Java和Kotlin的项目,能够成功运行和构建.但是,当我在IntelliJ中打开项目时,在许多项目文件中都看到了相同的错误.

I have a project with Java and Kotlin, which I am able to successfully run and build. However, when I open the project in IntelliJ, I see the same error in many of the project files.

错误是无法访问类'java.lang.String'.检查模块类路径中是否缺少依赖项或冲突的依赖项"

The error is "Cannot access class 'java.lang.String'. Check your module classpath for missing or conflicting dependencies"

查看所附图片中的错误:

See the error in the image attached:

此错误的根源是什么?我该如何解决?

What is the source of this error? How can I fix it?

推荐答案

如果您的项目是使用JDK设置的,则IDE(Intellij)可能没有设置JDK,但是您构建的应用程序可以在所需的JVM上正常运行.

If your project is set with a JDK, then probably IDE (Intellij) does not have JDK set but your built application could run just fine with the required JVM.

这篇关于检查您的模块类路径是否缺少或冲突的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆