"Add dependency" is not available

Answered

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)

 

0
3 comments

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:

  1. Refresh the Gradle project by clicking on the ‘Refresh’ button in the Gradle tool window.
  2. Reimport the project as a Gradle project if the issue persists.
  3. Check if the IntelliJ IDEA version you’re using has any known issues related to Gradle integration and consider updating if there’s a newer version available.
  4. Ensure that the Package Search plugin is up-to-date and properly configured

 

 

 

 

Best Regards,

disneyhub

 

 

0

That appears to be a known issue described in IDEA-351080.

Please make sure to upvote it, to raise its' priority for the developers!

0

I have the same issue on 2024.1. 

I upvoted the linked issue, hoping it will be fixed !

0

Please sign in to leave a comment.