IntelliJ Error Checking Not Resolving Classes from Jar though Project Builds Correctly
I have a project that depends on a jar created from another project of mine, both in IntelliJ. Up until a few days ago they worked together seamlessly. Now, the IntelliJ error checking for the second project cannot resolve the classes in the first project's jar file, but when I build/run the second project, I get no errors and it works like it is supposed to. I've checked the .iml files and .xml files for both and they look fine. I've also tried creating a new artifact configuration in the first project and tried messing with dependencies in both, all with no luck. One thing I did try to do recently was to add a Maven framework to the first project but ended up undoing that.
This is more of an inconvenience than a serious problem but is quite annoying. Any ideas as to why this is happening?
Please sign in to leave a comment.
File | Invalidate Caches/Restart.. | Invalidate and Restart.
If issue remains: how do you configure the dependency for the module with the error? How do you build the project?
Provide a project to check if possible (for uploading you can use ftp://ftp.intellij.net/.uploads / https://uploads.services.jetbrains.com or any file sharing service).
Tried that, nothing changed.
Here is the first project (the library the second one is based on): https://drive.google.com/drive/folders/1udym48eiOmkYCY_YH4fLbrIr8Qyr-htb?usp=sharing
Here is the second project: https://drive.google.com/drive/folders/1pLndZazgSnRC0sJ-4O0hV-oqk8JGqioL?usp=sharing
Please follow this issue for further progress: https://youtrack.jetbrains.com/issue/KT-29024