You have to go to this particular directory:
and edit the configuration for maven publication in this build.gradle file.
After you have made the respective changes, you would get a pop-up in the right-side
Asking for a Synchronization in Java Classpath
You can select the option “Always” and proceed with the next task.