MavenWrapperDownloader.java - Cannot resolve symbol ...

Answered

Hi,

 

I'm quite new to IntelliJ and I just created a new project and was trying to commit the same to Git. I was able to successfully run the project on localhost.

However, while trying to commit and push, I get around 66 errors in MavenWrapperDownloader.java

I'm using IntelliJ IDEA 2020.3

I guess many would have experienced the same. I tried creating a new project, still no luck!

 

18 comments
Comment actions Permalink

Check the SDK in use for the module: https://i.imgur.com/QbyYPHs.png

Try also clearing caches (File | Invalidate caches and Restart). 

As a general troubleshooting step, try also remove/rename .idea directory in the project's root and re-import the project.

0
Comment actions Permalink

Hello, i have the same problem when creating a new project, did the recommended steps didn't work, i also googled around and tried other advices, as creating new project, deleting some cached folders from intellij, reimporting nothing worked

0
Comment actions Permalink

After googling for 5 hours I solved the problem. It was very simple. IN my case, i needed to right click on project source folder -> mark directory as sources root and immediately everything was solved!

0
Comment actions Permalink

I've tried everything they advise.

Nothing helped.
I think this is an IntelliJ IDEA problem.

JetBrains, check it, please.

0
Comment actions Permalink

Hello,

Is it possible to share project example for investigation?

0
Comment actions Permalink

Here's an example:

 

0
Comment actions Permalink

Thanks for the example. "MavenWrapperDownloader.java" class is located outside sources root, so it has resolve issues.

0
Comment actions Permalink

Thank you much, Yaroslav Bedrov!

Now everything works without errors.

0
Comment actions Permalink

This is for others, who will have the same error.

 

0
Comment actions Permalink

Hello!

Until the last post I did not check if the program works in IntelliJ IDEA.
One problem was solved, but another appeared.
IntelliJ IDEA changes the folder structure and an error occurs.
Although before the program worked without error, only there was a problem with git.

I think this is an IntelliJ IDEA problem after all.

Yaroslav Bedro, could you check it, please?

0
Comment actions Permalink

Could you please try to click on "Reload" button in Maven Tool window? Will it help?

0
Comment actions Permalink

I've updated Maven.
And everything went back to the version that works, but has erros.
I know that I can just press "Commit".
But, an error occurs, and the program works without errors.
Of course, I can ignore this, but why does this happen?

0
Comment actions Permalink

Is a known problem, please see https://youtrack.jetbrains.com/issue/IDEA-255125 It has been fixed for the next major IDE update and will be available in 2021 version first release. Sorry for this confusing behaviour.

1
Comment actions Permalink

Sorry, I'm a little confused as to what the recommended solution is to this problem until the 2021 update is released. Could somebody clarify that for me?

0
Comment actions Permalink

 For the time being, just ignore this inspection errors/warnings during commit.

1

Please sign in to leave a comment.