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

IllegalStateException: unknown destination during restore

I'm using Android's Navigation Component (androidx.navigation) and I also have bottom navigation menu with 3 items initially (and, respectively, my navigation graph layout has 3 destinations initially). But under some circumstances, I…
Ksenia
  • 3,453
  • 7
  • 31
  • 63
1
vote
1 answer

Howto androidx-databinding for onClick to static method with parameter

(Note: this is a follow up question to Is it possible to use androidx-navigation with onClick-databinding without writing boilercode in Fragment? I want to use androidx-databinding to handle onClick calling a static method with parameters…
k3b
  • 14,517
  • 7
  • 53
  • 85
1
vote
1 answer

How to exlude a jar file from an Android dependency?

I've read and tried a lot of post solution for this problem but there is something I am doing wrong because it is not working for me. I have just updated Android to AndroidX which came with the dependency…
Klyner
  • 3,983
  • 4
  • 26
  • 50
1
vote
1 answer

Migrating support to Android X: Are versions consistent across Modules?

I am migrating a big project to AndroidX. On my former project, on the top build.gradle, I have defined a variable with the support library version so the 30+ child build.gradle's include the desired support version: ext { supportLibraryVersion…
rupps
  • 9,712
  • 4
  • 55
  • 95
1
vote
0 answers

GBoard image insertion not working on pre Oreo devices with androidx

I followed these guidelines to support Keyboard image insertion into my app which is pretty straight forward: val editText = object : EditText(this) { override fun onCreateInputConnection(editorInfo: EditorInfo): InputConnection { val ic:…
M-Wajeeh
  • 17,204
  • 10
  • 66
  • 103
1
vote
0 answers

How can I use workflow library in application using AndroidX?

I'm trying to create an application that uses workflow (Square's Android library) I see on their Github project page that migration to AndroidX is currently blocked: https://github.com/square/workflow/issues/66 Does that mean that I can't use it in…
1
vote
1 answer

How to achieve old appearance of error message in material design TextInputLayout?

I am using com.google.android.material.textfield.TextInputLayout, and trying to achive input field appearance like on the first image: But it renders error message this way: How to make it look like on the first picture? UPDATE: This is my…
Oleh Liskovych
  • 991
  • 3
  • 13
  • 31
1
vote
1 answer

Android - While building project

When I'm building my project, it's giving me this error, How can I solve it? Error "instant_run_split_apk resources" I tried : cleaning project and invalidating cache
1
vote
0 answers

FileNotFoundException after migrate project to AndroidX

I have got a problem. I migrated my project to AndroidX using Android Studio ( Refractor --> Migrate to AndroidX ) The project migrated successfully, but when I am trying run app on my device, on Build output I have FileNotFoundException on **…
ofevy
  • 35
  • 6
1
vote
0 answers

Cannot access ActivityCompatApi23 after updating to AndroidX

When I updated all my android dependencies to androidx, I encountered this error when using DaggerAppCompatActivity "cannot access ActivityCompatApi23" I tried searching for similar issues but fail to find one. As far as I understand, androidx is…
Mike Diente
  • 191
  • 3
  • 7
1
vote
1 answer

Room @Query annotation string field without quotations

I have a DAO method like this: @Query("SELECT * FROM Libs where :field like :search") fun findLib(search:String,field:String): List I want to replace field as is, but Room adds quotation marks to it in generated code. For example I want to…
AVEbrahimi
  • 17,993
  • 23
  • 107
  • 210
1
vote
1 answer

can't resolved reference Recyclerview.adapter on androidx

i've migrated my project to androidx, but when i'm using androidx for recyclerview adapter the the class of RecyclerView.Adapter cannot be resolve i've doing this in gradle.properties android.useAndroidX=true android.enableJetifier=true im using…
Alif Al-Gibran
  • 1,166
  • 1
  • 13
  • 24
1
vote
2 answers

java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.ScrollView$SavedState

I recently started getting following exception in our production app. { "androidApiLevel": "28", "osBuild": "PQ2A.190405.003" } Device: Pixel 2 XL Any idea whats going on here? java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be…
M-Wajeeh
  • 17,204
  • 10
  • 66
  • 103
1
vote
2 answers

Android resource linking failed error: resource style/CardView error: failed linking references

Am using androidx support library, Included the library for com.google.android.material:material:1.1.0-alpha05 am getting the error while building the application, I haven't used any card view in my application. Android resource linking…
livemaker
  • 464
  • 1
  • 9
  • 19
1
vote
1 answer

Proguard rules for AndroidX AppCompat package

Up till now I am using AppCompat libraries but now I have migrated my project to AndroidX libraries. I am stuck with proguard rules for androidx. As you know we are using proguard rules for AppCompat as below: -keep public class…
Pratik Butani
  • 60,504
  • 58
  • 273
  • 437
1 2 3
99
100