Hajile
Lurker
How do you get androidx to work?
I've recently picked up mobile programming again and it seems kotlin is now the one being used?
Anyway, i've looked up some tutorials and i'm having some issues.
One of the tutorials is on handling rotations and to save the previous settings, it uses
val pref=PreferenceManager.getDefaultSharedPreferences(context).edit()
I get a deprecated warning, and apparently you're now supposed to use androidx, but when i tried it, it doesn't show up (see first pic).
I tried looking up other tutorials on how you install it and you're supposed to use a checkbox at the splash screen, but that's not on my screen either (see second pic).
So what are you supposed to do?
I've been at this for two days and pretty much every tutorial, (even the ones on getting started) that comes up in the search and each of them just assumes, androidx is already working. Any help would be appreciated.
I've recently picked up mobile programming again and it seems kotlin is now the one being used?
Anyway, i've looked up some tutorials and i'm having some issues.
One of the tutorials is on handling rotations and to save the previous settings, it uses
val pref=PreferenceManager.getDefaultSharedPreferences(context).edit()
I get a deprecated warning, and apparently you're now supposed to use androidx, but when i tried it, it doesn't show up (see first pic).
I tried looking up other tutorials on how you install it and you're supposed to use a checkbox at the splash screen, but that's not on my screen either (see second pic).
So what are you supposed to do?
I've been at this for two days and pretty much every tutorial, (even the ones on getting started) that comes up in the search and each of them just assumes, androidx is already working. Any help would be appreciated.