Cached gradle dependencies no longer referenced after updating to 2019.2
已回答
After upgrading to 2019.2, IntelliJ IDEA changed the location it expected to find library dependencies from my local gradle cache to /Applications...

This artifact is located in a subfolder of ~/.gradle/caches/modules-2/files-2.1/
I can build the project on the command line via Gradle just fine. However, when I display the Gradle window in IntelliJ, it reports that it cannot resolve this same dependency:

I manually changed the dependency in the Project Structure to the correct location:

This corrects the compilation errors and I can run tests, etc. However, the Gradle window still shows the dependency as unresolved.
请先登录再写评论。
Please see https://youtrack.jetbrains.com/issue/IDEA-219272.