I’m using IntelliJ but getting weird error saying
Cannot resolve “import javax.annotation.Nullable;”
Which, I can’t make sense of. JDK is absolutely set.
I’m using IntelliJ but getting weird error saying
Cannot resolve “import javax.annotation.Nullable;”
Which, I can’t make sense of. JDK is absolutely set.
The class javax.annotation.Nullable
is not part of the JDK. It’s in a JAR file called jsr305-1.3.9.jar
from the Maven coordinates com.google.code.findbugs:jsr305:1.3.9
. Make sure that file was successfully downloaded and is showing up correctly in the External Dependencies. This should happen automatically, but if something failed, confirming that file is a good place to start.
what about the one inside gradle-api.jar ? That one is there, listed in External Libraries of IntelliJ, and https://github.com/gradle/gradle/blob/master/subprojects/core/core.gradle