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
20
votes
3 answers

Unable to instantiate fragment com.swmansion.rnscreens.Screen

I have been developing an app for android and ios using React Native 0.60.4, and just recently I discovered that putting the app in split-screen or freeform mode (from being the only app on the screen) sometimes causes it to crash. I played with…
Will
  • 476
  • 1
  • 8
  • 19
20
votes
3 answers

How to use PreferenceScreen of Androidx

My problem is that I wanted to add a PreferenceScreen to my Application, but I can't use it and I don't know why. I implemented the library androidx.preference:preference:1.1.0-rc01. Then I wanted to add the PreferenceScreen to my XML-layout and it…
BierDav
  • 1,219
  • 1
  • 10
  • 27
20
votes
1 answer

Sample usage of WebViewCompat

By accident I found that there is a support library for WebView that is part of AndroidX: androidx.webkit:webkit:1.0.0 However I could not find any sample code on how to use it and the JavaDoc is not much of a help either:…
TomTasche
  • 5,448
  • 7
  • 41
  • 67
20
votes
3 answers

Android Test Orchestrator not working with Android X

I have recently migrated my project to use AndroidX, and have configured test orchestrator for my espresso tests on gradle using the following docs: https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator I have…
20
votes
1 answer

AndroidX build issue with ProGuard

CLOSED We are trying to integrate android library (which is compiling android support library) in our project that has been migrated to androidX. And for unknown reason we are getting can't find referenced method 'void…
19
votes
1 answer

Contains references to both AndroidX and old support library

After upgrating flutter version to Flutter 1.22.0-2.0.pre.78 • channel master I am getting this warning:- WARNING: [Processor]…
Nicks
  • 3,188
  • 3
  • 25
  • 29
19
votes
3 answers

Proper usage of navigation component with view pager2 and nested navigation

I am trying to build the following view structure/ navigation using ViewPager2 + FragmentStateAdapter + navigation component. Preconditions: Single activity architecture, with one navigation graph 1. Fragment A holds a view pager. View pager uses…
Matin Petrulak
  • 1,087
  • 15
  • 23
19
votes
3 answers

What is the Jetpack Compose equivalent of RecyclerView or ListView?

In Jetpack Compose, how can I display a large list of data while laying out only the visible items, instead of composing and laying out every item on the initial layout pass? This would be similar to RecyclerView and ListView in the View…
Ryan M
  • 18,333
  • 31
  • 67
  • 74
19
votes
5 answers

Does Android Jetpack Compose support Toolbar widget?

I'd like to use Toolbar with Jetpack Compose. Does it have such a Composable component?
19
votes
6 answers

Google Auth migrating to androidx: SignInHubActivity does not implement Lifecycle

After the migration to AndroidX i'am facing this the following issue with the Google Auth lib: On Android 9 API 28: java.lang.IncompatibleClassChangeError: Class 'com.google.android.gms.auth.api.signin.internal.SignInHubActivity' does not implement…
18
votes
4 answers

The compose compiler plugin you are using (version 1.0.0-alpha13) expects a minimum runtime version of 1.0.0-alpha13

I cannot get my project to compile after upgrading to compose beta-01. When searching for "alpha-13" in my project I cannot find something too, which is really weird. It worked with alpha-12 though. Im running the correct Android Studio (Arctic Fox…
Andre Thiele
  • 3,202
  • 3
  • 20
  • 43
18
votes
4 answers

android - fontFamily not working on androidx

It's very strange that why fontFamily is not working on androidX . this is my code:
18
votes
5 answers

How to remove white box from TextInputLayout

Today I have just updated my dependencies of material design from 1.0.0 to 1.1.0-alpha09 implementation 'com.google.android.material:material:1.1.0-alpha09' Now i"m getting strange issue in com.google.android.material.textfield.TextInputLayout Here…
18
votes
2 answers

error: duplicate value for resource 'attr/orientation' with config '' .aapt.v2.Aapt2Exception: Android resource compilation failed

I've got this compile error! I checked similar problems on stackoverflow but all of them were about different errors & not " attr/orientation' with config '' ", but they didn't work for my problem! I'm using androidx library , kotlin ,Gradle…
Hamed Jaliliani
  • 2,789
  • 24
  • 31
17
votes
3 answers

setFragmentResult and setFragmentResultListener packages not found (Unresolved reference)

Could anyone help me please how can I import setFragmentResult and setFragmentResultListener into my project? I have implemented 'androidx.fragment:fragment-ktx:1.2.5' but it seems it is not the right package.
weera
  • 884
  • 1
  • 10
  • 21