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

app crashes: E/AndroidRuntime + android.support.v4.content.FileProvider class not found

Recently, I've migrated to AndroidX because I couldn't run react-native run-android and it suggested me to add tools:replace="android:appComponentFactory" to my tag in my AndroidManifest.xml file. so after searching a lot I was somehow…
1
vote
2 answers

How can i refactor the navigation drawer

I would like to refactor this section of code as you can see there's a lot of functions repeatly override fun onNavigationItemSelected(menuItem: MenuItem): Boolean { when (menuItem.itemId) { R.id.home -> { …
Purusann
  • 13
  • 4
1
vote
1 answer

The given artifact contains a string literal with a package reference 'android.support.v4.widget' that cannot be safely rewritten

Got this error when I tried to sync my project with gradle files ERROR: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] …
Anga
  • 2,450
  • 2
  • 24
  • 30
1
vote
0 answers

How to delete an AndroidX Preference value?

I created a custom Preference RangeBarPreference. I must have initially persisted the preference value as an Integer as I'm getting this error message: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String when trying…
Zorgan
  • 8,227
  • 23
  • 106
  • 207
1
vote
0 answers

androidx worker manager issue - " java.lang.IllegalStateException: Cannot parse result path string: "

I tried to implement implementation "androidx.work:work-runtime-ktx:2.0.1" today. It downloaded (initial build) fine but when I try to rebuild project or to run on my device I am facing a really weird issue. Caused by:…
1
vote
0 answers

Error - Android Duplicate Classes Found in Module

Recently I have migrated to AndroidX after that it works fine, but suddenly when I try to make a build, it throws some error like some duplicate files have found in modules Also I have enabled AndroidX in…
Stack
  • 1,164
  • 1
  • 13
  • 26
1
vote
2 answers

How to solve the CameraX app's being unresponsive?

The emulator becomes almost unresponsive (I am not able to pan the camera) and consumes too much computational power (CPU & GPU) when my sample CameraX app, which is based on that GitHub repository, is being run. Could you please guide me through…
talha06
  • 6,206
  • 21
  • 92
  • 147
1
vote
0 answers

Android X Project

Failed to transform 'C:\Developer\NftAndroid Files\NftLatest\app\libs\pass-v1.2.2.jar' using Jetifier. Reason: 8. (Run with --stacktrace for more details.) What is the reason for this error ?
Bilal
  • 13
  • 1
  • 7
1
vote
0 answers

No Design Preview shown when using Material Design

I migrated my project to androidx and used the material design "getting startetd" guideline. However it seems that I am unable to get the design correctly rendered. The MainActivity is showing the following…
1
vote
4 answers

Getting some errors on setActionBar()

So i'm having some trouble with my code with this error i'm using androidx and i think the problem is because of dat. for being honest i don't know how to change to old version android so the error is this error: incompatible types:…
1
vote
1 answer

Migrate to AndroidX :: android.content.ActivityNotFoundException:

//calling Activity written in kotlin but activity is //not started and giving below-mentioned exception Exception: android.content.ActivityNotFoundException: Unable to find explicit activity class …
1
vote
3 answers

Flutter & AndroidX incompatibility How to set a dependency manually

I'm getting error(s) while compiling due to AndroidX incompatibility: Android dependency 'androidx.vectordrawable:vectordrawable' has different version for the compile (1.0.0) and runtime (1.0.1) classpath. You should manually set the same version…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
1
vote
2 answers

Android Jetifier CI/CD

Trying to use the Jetifier in a CI/CD environment, for me specifically I'm using bitrise, but the real issue is I want to automate the deployment process. Prior to AndroidX this worked fine, now I need a way to use the jetifier for the whole app…
KodyVanRy
  • 1,110
  • 1
  • 14
  • 25
1
vote
1 answer

Androidx :ERROR: Failed to resolve: legacy-support-core-utils

i got this error when trying to migrate my android app to androidX with this implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:7.3.0' but it's ok with : implementation…
Mohammad Sommakia
  • 1,773
  • 3
  • 15
  • 48
1
vote
0 answers

Unable to find TrackSelectionView .getDialog class in exoplayer2 on AndroidX

Unable to find TrackSelectionView .getDialog class on AndroidX. But v7Support Libraries normal working. error: cannot find symbol method getDialog(Activity,CharSequence,DefaultTrackSelector,int) MappingTrackSelector.MappedTrackInfo…
micron
  • 21
  • 5