Android SharedReferences类使用了错误的注释引用

Android SharedReferences类使用了错误的注释引用,android,android-studio,androidx,Android,Android Studio,Androidx,我更新了旧Android项目的build.gradle文件,以使用新的androidx实现引用,而不是旧的编译引用。在整个应用程序中,我必须用新的androidx.annotation.Nullable替换所有导入的android.support.annotation.Nullable。对于应用程序自己的自定义代码库来说,这似乎很好 但是,该应用程序还有一个SharedReferences类,它使用android.content.SharedReferences类。后者继续引用旧的android

我更新了旧Android项目的build.gradle文件,以使用新的androidx实现引用,而不是旧的编译引用。在整个应用程序中,我必须用新的androidx.annotation.Nullable替换所有导入的android.support.annotation.Nullable。对于应用程序自己的自定义代码库来说,这似乎很好

但是,该应用程序还有一个SharedReferences类,它使用android.content.SharedReferences类。后者继续引用旧的android.annotation.Nullable,这给了我一个“无法解析符号”错误。我在build.gradle文件中包含了以下实现,我不知道我是否遗漏了任何东西来保持它正常工作

implementation "androidx.appcompat:appcompat:1.0.0"
implementation "com.google.android.material:material:1.0.0-rc01"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
implementation 'me.dm7.barcodescanner:zxing:1.9.13'
implementation 'me.dm7.barcodescanner:zbar:1.8.4'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.github.clans:fab:1.6.2'
implementation 'androidx.annotation:annotation:1.1.0'