• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

How do you get androidx to work?

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.
 

Attachments

  • td1.jpg
    td1.jpg
    487.5 KB · Views: 159
  • td2.jpg
    td2.jpg
    133.7 KB · Views: 136
  • te2.jpg
    te2.jpg
    80.3 KB · Views: 167
  • te3.jpg
    te3.jpg
    112.9 KB · Views: 171
  • te4.jpg
    te4.jpg
    408 KB · Views: 171
Back
Top Bottom