Cannot resolve symbol 'java8'
Answered
Hello to everybody.
I'm using:
IntelliJ IDEA 2018.2.8 (Ultimate Edition)
and the latest Java8: 1.8.0_211
My IDE highlights errors such as:
import java8.util.Optional;
- Cannot resolve symbol 'java8'
Error:(29, 18) java: package java8.util does not exist
What do I need to configure in IDEA to avoid such errors?
Project language level in Project Structure already set to '8 - Lambdas, type annotations, etc.'
Please sign in to leave a comment.
It's java.util.Optional: https://docs.oracle.com/javase/8/docs/api/java/util/Optional.html
The same problem is for java8.util.Objects, java8.util.stream.StreamSupport, etc.
Where to download a jar with such package names?
Ask the one who wrote the code using these packages.