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
2 answers

android.view.InflateException: Binary XML file line #8: Binary XML file line #2: Error inflating class layout

In my android app gradle.properties: android.useAndroidX=true android.enableJetifier=true in my main layout (nav_drawer_main):
Alexei
  • 14,350
  • 37
  • 121
  • 240
1
vote
3 answers

Can not release appBundle cause of AndroidX incompatibilities in this Flutter app

I want to release appBundle with 'flutter build appbundle' but I have this error. This project has already been migrated to AndroidX. There are not used third-party libraries compileSdkVersion: 28 targetSdkVersion: 28 minSdkVersion: 16 buildTypes…
1
vote
0 answers

After Androidx migration MaterialCardView wont't be affected by it's style

I'm developing new android app that shows coffee drinks using google material design components. after I migrate my project to Androidx the style won't applying to MaterialCardView IDK what the problem or why this is happening!!. I tried to upgrade…
Mostafa Amer
  • 192
  • 2
  • 13
1
vote
1 answer

NonExistentClass cannot be converted to Annotation - app:kaptDebugAndroidTestKotlin

I want to test a class using JUnit5 but at the time gradle runs the app:kaptDebugAndroidTestKotlin task I get the issue. I have already tried the solutions in the following links but nothing helps so far: NonExistentClass cannot be converted to…
inner_g
  • 31
  • 1
  • 3
1
vote
0 answers

transpose project with PreferenceActivity/appcompat-v7:28.0.0 to PreferenceFragmentCompat/androidx

I want to transpose the project below api level 22 to api level 28 I stay taking PreferenceActivity of project links below and I put PreferenceFragmentCompat: [1]:http://ryanfx.blogspot.com/2013/06/raspberry-pi-powered-android-controlled.html This…
1
vote
0 answers

manifest merger failed-appcomponentfactory

i am trying to add firebase to my project but before adding this line implementation 'com.google.firebase:firebase-core:17.0.0' in dependencies the app was working fine but when i add this error is showing like this : Manifest merger failed :…
1
vote
1 answer

AndroidX. Could not determine artifacts for androidx.multidex:multidex:2.0.0

I try to migrate a project to AndroidX. After 3 minutes of migrating it finished with error: Gradle import errorsC:\Users\user\AndroidStudioProjects\project\app\build.gradleproject ':app': Unable to build Kotlin project configurationDetails: …
CoolMind
  • 26,736
  • 15
  • 188
  • 224
1
vote
1 answer

Getting error after implement 'com.google.firebase:firebase-core:17.0.0' and apply plugin: 'com.google.gms.google-services'

I got an error when try to build my apps after adding implementation 'com.google.firebase:firebase-core:17.0.0' and apply plugin: 'com.google.gms.google-services' in my app build.gradle file I have using line com.android.tools.build:gradle:3.4.0 and…
Madra
  • 29
  • 4
1
vote
2 answers

Android Studio stuck on :app:transformdexarchivewithdexmergerfordebug after migrating to androidx while building the gradle

I migrated to AndroidX and since then I'm unable to run my app on emulator neither I'm able to generate .apk or app bundle because the android studio gets stuck on :app:transformdexarchivewithdexmergerfordebug while building the app. I tried to…
Arjun
  • 1,477
  • 1
  • 13
  • 23
1
vote
1 answer

How to apply a style/theme (material) to a preference in androidX?

I know this might be a possible duplicate like Applying AppCompat theme to individual preferences in a PreferenceFragment I used this video on youtube: https://www.youtube.com/watch?v=PS9jhuHECEQ And from devolper android this…
1
vote
1 answer

Didn't find class "android.support.v4.content.ContextCompat" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar"

When I upgrade Androidx,I have a problem as below: No pending exception expected: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.content.ContextCompat" on path: DexPathList[[zip file…
Alfred
  • 11
  • 2
1
vote
4 answers

How to Implement Butterknife.Action in AndroidX?

I am not able to use ButterKnife.Action in andoidx, can someone give any suugestions on how to use ButterKnife.Action in androidx? classpath 'com.jakewharton:butterknife-gradle-plugin:9.0.0-rc2' implementation…
Kathir
  • 11
  • 2
1
vote
2 answers

How to find which library use AndroidX

I'm using react native and my Android project isn't compiling anymore because of this error: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from…
Kiavor
  • 476
  • 1
  • 7
  • 14
1
vote
2 answers

Updating Firebase core from version 16 to 17 causing compilaton error

In my project I use Firebase analytics. After I updated in gradle its version from implementation 'com.google.firebase:firebase-core:16.0.7' to implementation 'com.google.firebase:firebase-core:17.0.0' I got compile error Android resource linking…
Josef Vancura
  • 1,053
  • 10
  • 18
1
vote
1 answer

Coordinator Layout and some other layouts not working after migration to androidX

I recently migrated my project to androidX using Refactor. All the implementations were automatically changed to androidx. But I am not able use support design layouts example: Coordinator Layout It is only showing grey color on the whole preview. I…