我尝试在我的 pom.xml
中添加以下依赖项文件:
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180813</version>
</dependency>
但是,<version>
标签的内容以红色突出显示,并且 Dependency org.json:json:20180813 not found
弹出错误:
为什么会发生这种情况以及如何解决?
最佳答案
cloud1's answer helped me out :
Try pressing 'Reimport All Maven Projects' button. It's the first button at Maven Projects tab (blue circle). Looks like this dependency wasn't downloaded from Internet yet.
关于java - Idea Intellij : Dependency org. json :json:20180813 not found,无法在maven中导入org.json库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52485982/