I\'m trying to use the barbecue barcode printing library. I have successfully added the library to IntelliJ through project structure add library. Then I imported the packa
What happens here is the particular package is not available in the cache. Resetting will help solve the problem.
Goto terminal and build the project again
./gradlew build
This should download all the missing packages again
Right click your project / Maven (at bottom) / Reimport
Edit, much later: I also saw this happen much more frequently when I had the Clover plugin installed. Drop that plugin like a bad habit!
In case you're facing very weird "unable to resolve java
, sun
packages problem", try the following:
I tried compile a java 8 project with JDK 12 and has the same issue. None of previous answer solved my problem.
I changed o Shortel Command Line to "JAR Manifest" and worked like a charm.
Invalidate Caches/ Restart and then Build -> Rebuild Project helped for me
It's a very annoying problem which happens quite often. Especially after switching to a different git branch. It wasted me way too much time to troubleshoot this kind problem. I have tried all the methods above. But I can't find a reliable way. Here I just summarize those steps which could help in my situation. Jetbrains, please fix this issue to save your customer's precious time.