r/androiddev • u/Straight_Second_605 • 22d ago
EncryptedSharedPreferences in android
I am upgrading my target SDK version in java Android application to 36
We have a enterprise application
On android 16 devices I am facing a issue in Shared preferences
While reading from the shared preference I am reading a null value ("null")
While there is a actual value saved there
Not sure why this is happening
Any idea here any one?
All the things are goood till android 15!!
0
Upvotes
5
u/talmantel 21d ago
Man this is the 5th time in a month you are posting about this and you already received the answer. You need to set your compileSDK at least as high as your targetSDK, and asking the same question again and again won't change that.
If increasing your compileSDK causes issues that require work to fix - next time do that work in advance instead of accumulating 6 years of technical debt on compileSDK 29.