If I open android.content.SharedPreferences
class from SDK, I can see that it imports android.annotation.Nullable
class, but I can't open that class, it's not on my classpath. And Android Studio does not recognize this annotation (so on my Kotlin code I'm not getting proper nullable types when using methods from SharedPreferences class). I have android.support.annotation.Nullable
, org.jetbrains.annotations.Nullable
, javax.annotation.Nullable
, but not android.annotation.Nullable
.
I have android.jar
from my SDK on classpath and there are two classes in android.annotation
package: SuppressLint
and TargetApi
, but not Nullable
.
I'm using Android Studio 3.3.1 and just created default project with Kotlin and 5.0 minimum target.