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
1
vote
1 answer

Fragment and BindingFragmentActivity is not assignable to 'android.app.Activity' after upgrading to API 28/Android X

I'm upgrading my old project to use latest android apis, gradle build, etc... and I'm running into this issue with my Android Manifest. I have a few activities set like below:
Euridice01
  • 2,510
  • 11
  • 44
  • 76
1
vote
0 answers

I am getting error in gradle file. Using groupId

Don't know what error I am getting. Tried many this but unable to resolve this error. I have changed appcompat versions too. But nothing seems working. my gradle file apply plugin: 'com.android.application' apply plugin:…
1
vote
1 answer

React-native error: Manifest merger failed

Running my app got this error: Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 is also present at…
1
vote
2 answers

Can I use a Flow helper with RadioButtons?

I found the following post on SO regarding constraint layout flow helpers ConstraintLayout Flow helper example and wondered if they could be used with radio buttons. I can find little about using flow helpers anywhere. I tried adding the following…
Greum
  • 81
  • 1
  • 5
1
vote
0 answers

Need help replicating our UI. Moving the settings screen from RecyclerView to PreferenceFragmentCompat (AndroidX)

We are moving our current settings screen from a RecyclerView based implementation to PreferenceFragmentCompat (AndroidX) due to accessibility reasons. UI requirements: Screen Background gradient (Green to Black) White background for each setting…
Kshitij Aggarwal
  • 5,287
  • 5
  • 34
  • 41
1
vote
0 answers

How replace setSupportActionBar by styles?

In my android app, I can't use AppCompatActivity. I have no source code of this part of the project. So I use androidx.fragment.app.FragmentActivity app theme: