发布于 2021-06-19 / 879 阅读

IDEA failed to import the class due to untrusted project

What's the issue?

After upgraded my IDEA, I can't import the libs as I did not click the Trust Project button.

The Inteillj IDEA try to keep you safe, if you open a untrusted project, it would not run some action like maven:

This caused the issue as below:


Add your project location to the Trusted Locations:

After added, reopen your project: