Questions tagged [androidx]

New Android extension libraries (AndroidX) which represents an Android Support Library.

New package structure to make package structure clearer which packages are bundled with the Android operating system, and which are packaged with Android app's APK. Going forward, the android.* package hierarchy will be reserved for Android packages that ship with the operating system; other packages will be issued in the new androidx.* package hierarchy.

Existing packages are being refactored to use the new hierarchy. Historical artifacts—those versioned 27 and earlier, and packaged as android.support.* —will remain available on Google Maven; however, all new development will occur in the new androidx.*-packaged artifacts versioned starting from 1.0.0.

Release blog

Official Google Doc

AndroidX release notes

AndroidX refactoring

2486 questions
11
votes
1 answer

deprecated OnActivityResult() in androidx

OnActivityResult() is deprecated in androidx. I took reference from below…
11
votes
0 answers

Is there an annotation that denotes a max Android API version?

The annotation @RequiresApi is helpful for requiring that the annotated element is only called on the given API level or higher. However, there does not appear to be a corresponding annotation for requiring that the annotated element is only called…
11
votes
4 answers

'android.useAndroidX' property is not enabled

okay, so this is the first time I'm working with SDKs, I'm using the zoom SDK from here https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started and I'm trying to run the sample APK as mentioned in the documentation and it returns…
shane
  • 125
  • 1
  • 1
  • 9
11
votes
3 answers

Is there any proguard rules should use while using EncryptedSharedPreferences?

before using EncryptedSharedPreferences my app works fine in release mode with (minifyEnabled = true), After adding the security library (version 1.0.0-rc01) to my application the app crash while opening and if i use (minifyEnabled = false) the app…
Ahmed Mousa
  • 580
  • 1
  • 7
  • 22
11
votes
1 answer

Android: Deprecated cannot be converted to Annotation

Gone down the rabbit hole of migrating to AndroidX... I've nearly completed the migration, but running into one error I can't seem to get past. Already tried Clean & Rebuild and Invalidate Caches / Restart It looks like something is injecting…
Evelyn
  • 2,588
  • 3
  • 22
  • 47
11
votes
1 answer

Remove an android Chip from a Chip Group smoothly

In one of the fragments of the app i'm developing, i let the users create various chips and every chip represents an option. I was able to animate the chip creation. Now, when the user taps on a chip, i remove it from the group. I was able to…
m.i.n.a.r.
  • 922
  • 2
  • 12
  • 28
11
votes
2 answers

How do i fix this error of 'simple_permissions' on flutter?

There is an error when I run the code including simple_permissions on flutter project. Initializing gradle... Resolving dependencies... Running Gradle task…
RiyaC
  • 121
  • 1
  • 3
11
votes
4 answers

DrawerLayout in AndroidX is Missing?

I use DrawerLayout and Hamburger menu in my App. I migrated my App to Androidx. Everything it seems right but DrawerLayout. It doesn't know DrawerLayout Class. What I have to do?
Fcoder
  • 9,066
  • 17
  • 63
  • 100
11
votes
2 answers

android:button="@null" doesn't work on lower API <= 19 devices

I updated the version of the androidx.appcompat:appcompat to 1.1.0-alpha01 for use new features. But after the update, the android:button="@null" with the RadioButton stopped working on devices lower API 19 and doesn't delete the default radio…
Vladyslav Panchenko
  • 1,517
  • 1
  • 19
  • 23
11
votes
5 answers

Can't inflate ConstraintLayout

Each time my app crashes because it can't find Landroidx/constraintlayout/widget/R$styleable in classpath. I tried to rebuild, invalidate cache but it always gives me the same error in runtime. I tried both versions 1.1.2 and 1.1.3. And interesting:…
RChugunov
  • 794
  • 2
  • 11
  • 26
11
votes
4 answers

Migrating to AndroidX

I upgraded my Android Studio to 3.2 and now I want to auto migrate to AndroidX using from Redactor->Migrate to AndroidX and now it has this error: Android dependency 'androidx.media:media' has different version for the compile (1.0.0-rc01) and…
Amir
  • 568
  • 1
  • 5
  • 21
11
votes
3 answers

Migration to androidX missing in Android Studio

I am trying to migrate my project to androidX. The project i am trying to migrate is based on android support libraries AppCompat. In the Developer Documentation it says that you can migrate to AndroidX by doing the Following: Android Studio ->…
10
votes
2 answers

Android Notification MediaStyle Ignores Ongoing Flag

I am attempting to employ a MediaStyle notification in an audio Android application as discussed in the audio app documentation as well as in the media style documentation. I am able to successfully show a notification with functional transport…
10
votes
2 answers

How to change toolbar back button icon in android material components

I would like to change the default navigate up icon (back button icon) to my custom icon. I not using a drawer, just a simple toolbar and material components Is this possible?
10
votes
2 answers

Duplicate id, tag null, with another fragment for androidx.navigation.fragment.NavHostFragment

Issue I am trying to add a fragment in activity, along with Navigation. But I see the following error java.lang.RuntimeException: Unable to start activity ComponentInfo{com.app.myapp/com.app.myapp.HomeMainActivity}: android.view.InflateException:…
Darshn
  • 1,512
  • 1
  • 23
  • 31