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!
Please sign in to leave a comment.
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.
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
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!
I've tried everything they advise.
Nothing helped.
I think this is an IntelliJ IDEA problem.
JetBrains, check it, please.
Hello,
Is it possible to share project example for investigation?
Hello!
Of course!
Here's a link:
https://github.com/babinvas/heroku-trial-run.git
Here's an example:
Thanks for the example. "MavenWrapperDownloader.java" class is located outside sources root, so it has resolve issues.
Thank you much, Yaroslav Bedrov!
Now everything works without errors.
This is for others, who will have the same error.
You are welcome!
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?
Could you please try to click on "Reload" button in Maven Tool window? Will it help?
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?
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.
Thank you!
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?
For the time being, just ignore this inspection errors/warnings during commit.