Null content Shared Preferences in Kotlin
问题 I'm developing an app that uses Shared Preferences, so I created a class only for this, but when I launch the app I get this error: 2020-06-03 14:51:50.124 32656-32656/com.go.experimental E/AndroidRuntime: FATAL EXCEPTION: main Process: com.go.experimental, PID: 32656 java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.go.experimental/com.go.experimental.AccesoActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content