"Add dependency" is not available
已回答
Hi,
In a Gradle Project from within the build.gradle file, if I do CMD + N (or do a Right click to invoke the context menu) there is no "Add dependency" link in the list. The "Package Search" plugin is enabled!
I am on MAC M1 and I use IntelliJ IDEA 2024.1.2 (Community Edition)
请先登录再写评论。
Hello! Harrygg
It sounds like you’re experiencing an issue with IntelliJ IDEA where the “Add dependency” option isn’t appearing in the context menu of your Gradle project. This could be due to a number of reasons, such as a plugin conflict, a bug in the IDE version, or an issue with the project setup.
Here’s a short and precise answer: To resolve the missing “Add dependency” option in IntelliJ IDEA, try the following steps:
Best Regards,
disneyhub
That appears to be a known issue described in IDEA-351080.
Please make sure to upvote it, to raise its' priority for the developers!
I have the same issue on 2024.1.
I upvoted the linked issue, hoping it will be fixed !