Mobile Tech Support

Flutter – fixing-androidx-error-in-flutter

Hi, today I came to discuss a problem that it has been occurring when we are building our Flutter app, appears a message that this app is incompatible with AndroidX.

This happens when a package or dependency that uses the app has migrated to AndroidX or when the libraries of android.support (that are in disuse) are incompatible with AndroidX (which comes to replace it).

Most of the times you can fix it by downgrading the version of the package with the problem, but if it still does not work (happened to me), then we do the following steps.

How to solve this issue

  1. Open the flutter project with Android Studio. Yes, I know it’s heavy and you do not use it, but you need to fix the problem.

2. On the left, at the file tree, we look for the android folder and right click on it, click on the Flutter option and then Open Android module in Android Studio. If a window Open Project is open, click on the This Window button.

3. Then a window appears informing you that it is advisable to update the Gradle plugin. In this window we click on the Update button.

4. In Android Studio we click on the Tools -> SDK Manager -> SDK Tools menu and verify that we have selected the Google Play Services option. In case the box is empty, they click on it and then install it.

5. After Google Play Service has been installed, on the left panel tree we look for the android -> app folder and open the gradle.build file, search for the property compileSdkVersion and change the value to 28.

6. Open the gradle.properties file and add the following lines:

– android.useAndroidX=true

– android.enableJetifier=true

7. Then in the file tree on the left panel, at the top change the Android mode by Project, right click on the android folder and select the Migrate to AndroidX option. A window appears to inform us that it will make a backup if we want, then click the Migrate button. We select where we want to save the copy, if so we decided in the previous window and then click OK.

8. Start to perform the processes and then will inform us if everything went well.

9. After this, it’s a good idea execute the flutter clean command to delete the build folder and run the app, the error won’t appear.

I hope you find this guide helpful, I made this post after I solve it and didn’t take the screenshots from my process, but all the steps needed are written one by one!

Author

admin

Comments (107)

  1. pendik escort
    March 25, 2024

    Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.

  2. song kang
    March 26, 2024

    song kang tv dizileri

  3. Coleman Dixon
    March 28, 2024

    I appreciate you sharing this blog post. Thanks Again. Cool.

  4. Purchase Google Ads Account
    March 28, 2024

    Best #8704.

  5. kurtkoy escort
    March 29, 2024

    I’m often to blogging and i really appreciate your content. The article has actually peaks my interest. I’m going to bookmark your web site and maintain checking for brand spanking new information.

  6. Olive Oil Turkey
    March 30, 2024

    For the reason that the admin of this site is working, no uncertainty very quickly it will be renowned, due to its quality contents about olive oil polyphenol.

  7. Keely Powers
    March 31, 2024

    naturally like your web site however you need to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth on the other hand I will surely come again again.

  8. berber koltuğu
    March 31, 2024

    hello, my friend thans for blog

  9. hadise boy
    April 1, 2024

    hadise

  10. Camden Knox
    April 1, 2024

    Good Logistics

  11. berber direkleri
    April 1, 2024

    Way cool! Some extremely valid рoints! Ӏ aρpreciate you writing thіs write-uр pluѕ tһе rst of thе website is extremely ɡood.

  12. 国产线播放免费人成视频播放
    April 1, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.儿童色情

  13. Jasper Roach
    April 2, 2024

    Markalaşmak

  14. bycasino deneme bonusu
    April 2, 2024

    Thank you great post. Hello Administ .

  15. bycasino giriş
    April 2, 2024

    Thank you for great information. Hello Administ .

  16. bycasino giriş
    April 2, 2024

    Thank you for great article. Hello Administ .

  17. Tipobet Yeni Giriş
    April 2, 2024

    I really love to read such an excellent article. Helpful article. Hello Administ .

  18. Tipobet
    April 2, 2024

    After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.

  19. Tipobet
    April 2, 2024

    Everything is very open and very clear explanation of issues. was truly information.

  20. Tipobet Giriş
    April 2, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.

  21. Tipobet Yeni Giriş
    April 2, 2024

    Nice article inspiring thanks. Hello Administ .

  22. Sahabet Güncel Giriş
    April 2, 2024

    Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.

  23. Sahabet resmi sitesi
    April 2, 2024

    Thank you great posting about essential oil. Hello Administ .

  24. Onwin Deneme Bonusu
    April 2, 2024

    Thank you great posting about essential oil. Hello Administ .

  25. Sahabet
    April 2, 2024

    Good info. Lucky me I reach on your website by accident, I bookmarked it.

  26. Onwin Giriş
    April 2, 2024

    After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.

  27. Fast links
    April 2, 2024

    Thank you great post. Hello Administ .

  28. comment backlink
    April 2, 2024

    Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.

  29. Diyarbet
    April 2, 2024

    Good info. Lucky me I reach on your website by accident, I bookmarked it.

  30. 国产线播放免费人成视频播放
    April 3, 2024

    Thank you for great content. Hello Administ. 国产线播放免费人成视频播放

  31. Yorum Satın Al
    April 3, 2024

    Thank you 23874

  32. Google Yorum
    April 3, 2024

    Thank you 231236

  33. 国产线播放免费人成视频播放
    April 3, 2024

    Nice article inspiring thanks. Hello Administ . 国产线播放免费人成视频播放

  34. kartal escort
    April 4, 2024

    Çok işime yaradı bende bunu nasıl yapacağımı araştırıyorum. Paylaşım için teşekkür ederim.

  35. 国产线播放免费人成视频播放
    April 4, 2024

    Thank you for content. Area rugs and online home decor store. Hello Administ . 国产线播放免费人成视频播放

  36. Divle Obruk Tulum Peyniri
    April 4, 2024

    It’s a very nice article, thank you for your pen.

  37. pendik escort
    April 5, 2024

    websitem için çok işime yaradı teşekkür ederim

  38. Casibom
    April 5, 2024

    Thank you great posting about essential oil. Hello Administ . 国产线播放免费人成视频播放

  39. 国产线播放免费人成视频播放
    April 5, 2024

    Thank you great posting about essential oil. Hello Administ . 国产线播放免费人成视频播放

  40. Ayanna Hoover
    April 5, 2024

    I’m often to blogging and i really appreciate your content. The article has actually peaks my interest. I’m going to bookmark your web site and maintain checking for brand spanking new information.

  41. Casibom
    April 6, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. Seo Hizmeti Skype : live:by_umut

  42. Diyarbet
    April 6, 2024

    Thank you great posting about essential oil. Hello Administ .Seo Hizmeti Skype : live:by_umut

  43. onwin
    April 6, 2024

    Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Seo Hizmeti Skype : live:by_umut

  44. ByCasino
    April 6, 2024

    Thank you great post. Hello Administ .Seo Hizmeti Skype : live:by_umut

  45. kartal escort
    April 6, 2024

    Makaleniz açıklayıcı yararlı anlaşılır olmuş ellerinize sağlık

  46. deneme bonusu veren siteler
    April 6, 2024

    Great post thank you. Hello Administ . Seo Hizmeti Skype : live:by_umut

  47. tatilmoni.com
    April 6, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. Seo Hizmeti Skype : live:by_umut

  48. Short Links
    April 6, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.Seo Hizmeti Skype : live:by_umut

  49. Alvin Harrison
    April 6, 2024

    I am truly thankful to the owner of this web site who has shared this fantastic piece of writing at at this place.

  50. Ismael Harding
    April 7, 2024

    very informative articles or reviews at this time.

  51. Microsoft Windows 11 Pro license key
    April 7, 2024

    Windows 11 Pro cheapest digital license key

  52. bonus veren siteler
    April 8, 2024

    Thank you for content. Area rugs and online home decor store. Hello Administ . Seo Hizmeti Skype : live:by_umut

  53. kampanyalı berber tezgahı
    April 8, 2024

    thanks for writing blog. i like that so much

  54. Windows 11 Pro Digital License Key
    April 9, 2024

    Windows 11 Pro Digital License Key esd

  55. Online Web Tools
    April 9, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.Seo Hizmeti Skype : live:by_umut

  56. Sumo Web Tools
    April 9, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.Seo Hizmeti Skype : live:by_umut

  57. 国产线播放免费人成视频播放
    April 9, 2024

    Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Seo Hizmeti Skype : live:by_umut

  58. windows 11 lisans key
    April 10, 2024

    windows 11 lisans key

  59. 国产线播放免费人成视频播放
    April 10, 2024

    Nice article inspiring thanks. Hello Administ . Seo Hizmeti Skype : live:by_umut

  60. 現場兒童色情片活婴儿色情片
    April 10, 2024

    Thank you for great article. Hello Administ .Seo Hizmeti Skype : live:by_umut

  61. Casibom Giris
    April 11, 2024

    I just like the helpful information you provide in your articles

  62. Astina333
    April 12, 2024

    astina 333, astina, AstinaSlot333, Slot, slot tanpa deposit, deposit25, bonus25 deposit25, slotgratis, gameslot tanpa deposit, minimal deposit 5000, slot deposit25, deposit pulsa, deposit pulsa, minimal deposit 5000, depo25 bonus25, bonus25 depo25, depo10k, depo5k, depo slot, bonus depo, depo25+25, link depo , linkslot depo, depo min25, depo pulsa, emoney depo, ovo gopay, slot5k, jackpot333, jackpots, jackpot arcade, jackpot maxwin, linkjackpot, jackpot vip, langsung jackpot, jackpot333 astina, login jackpot, jackpot paus, maxwin jackpot, id jackpot, link alternatif, link alternatif, alternatif login, alternative, linkalternatif, link alternatif login, link alternatif rajaslot, alternatif link, slotlink alternatif, bolabet alternatif, depo alternatif, maxwin, pola maxwin, maxwin333 astina, full maxwin, qqmaxwin, maxwin333, microgaming maxwin, maxwinslot, maxwin, cheat maxwin, maxwinjp, jp maxwin, full rtp, rtp, slot rtp, rtp maxwin, rtpwin, rtp slot, linkslot rtp, slotrtp, rtp tinggi, scatter333 astina, scatter, fullscatter, master scatter, scatter vip, master scatter, scatterslot, petir scatter, scatter, bonus scatter, apk scatter, bonus scatter, slot server thailand, server cambodia, slotserver, slot server kamboja, slot heylink, server slot heylink, server slot, server usa, server gacor, link server, serverindo, server slot singapore, server hoki, slotbesar, slot, slothoki, cuanslot, slotgacor, slotthr, slotthr, hujanslot, slotjitu, slotjitu, merahslot, cheatslot, slotpagcor, jpslot, hokibet, hoki333 astina, hoki77, kode hoki, sanghoki, hokitoto, hokiwinslot, autocuan, autohoki, hoki wd, login hoki, link hoki, hokislot, asiahoki, astina murah 333, 4mg, jual, jual astina 333, astina mulus, mazdaslot, lampu astina 333, resep, dosis astina 333, astina 333 2024, astinaslot333, review slot, kapsulslot

  63. Frida Kline
    April 12, 2024

    naturally like your web site however you need to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth on the other hand I will surely come again again.

  64. 看儿童色情片
    April 12, 2024

    Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.兒童色情

  65. 看儿童色情片
    April 12, 2024

    Thank you for great information. Hello Administ . 国产线播放免费人成视频播放

  66. onwin
    April 13, 2024

    After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.儿童色情片

  67. Nitelikli Kahve
    April 13, 2024

    Nitelikli kahve, kahve severler için benzersiz bir tat ve aroma dünyasının kapılarını aralar. Her biri özenle seçilmiş, yüksek kalitede çekirdeklerden üretilen nitelikli kahvelerimiz, sıradan bir kahve deneyiminin ötesine geçmek isteyenler için idealdir. Türkiye’nin önde gelen nitelikli kahveci sitesi olarak, zengin aroma profillerine ve üstün tat kalitesine sahip kahveleri sizlerle buluşturuyoruz. Nitelikli kahve çeşitlerimiz, dünyanın en iyi kahve üretim bölgelerinden gelen çekirdeklerle hazırlanır ve her bir yudumda farklı bir hikaye anlatır. Bu eşsiz kahve deneyimi için, tedarik ettiğimiz her çekirdeği titizlikle seçiyor ve kahve severlerin beklentilerini en iyi şekilde karşılayacak nitelikli kahve çeşitlerini sunuyoruz. İster evde ister ofiste, nitelikli kahve çeşitlerimizle kendinize özel anlar yaratabilirsiniz. E-ticaret sitemiz üzerinden kolayca sipariş verebilir ve Türkiye’nin her yerine güvenli bir şekilde ulaştırılan nitelikli kahvelerimizin keyfini çıkarabilirsiniz!

  68. onwin
    April 13, 2024

    Thank you for great information. Hello Administ . 国产线播放免费人成视频播放

  69. Astina333
    April 13, 2024

    astina 333, astina, AstinaSlot333, Slot, slot tanpa deposit, deposit25, bonus25 deposit25, slotgratis, gameslot tanpa deposit, minimal deposit 5000, slot deposit25, deposit pulsa, deposit pulsa, minimal deposit 5000, depo25 bonus25, bonus25 depo25, depo10k, depo5k, depo slot, bonus depo, depo25+25, link depo , linkslot depo, depo min25, depo pulsa, emoney depo, ovo gopay, slot5k, jackpot333, jackpots, jackpot arcade, jackpot maxwin, linkjackpot, jackpot vip, langsung jackpot, jackpot333 astina, login jackpot, jackpot paus, maxwin jackpot, id jackpot, link alternatif, link alternatif, alternatif login, alternative, linkalternatif, link alternatif login, link alternatif rajaslot, alternatif link, slotlink alternatif, bolabet alternatif, depo alternatif, maxwin, pola maxwin, maxwin333 astina, full maxwin, qqmaxwin, maxwin333, microgaming maxwin, maxwinslot, maxwin, cheat maxwin, maxwinjp, jp maxwin, full rtp, rtp, slot rtp, rtp maxwin, rtpwin, rtp slot, linkslot rtp, slotrtp, rtp tinggi, scatter333 astina, scatter, fullscatter, master scatter, scatter vip, master scatter, scatterslot, petir scatter, scatter, bonus scatter, apk scatter, bonus scatter, slot server thailand, server cambodia, slotserver, slot server kamboja, slot heylink, server slot heylink, server slot, server usa, server gacor, link server, serverindo, server slot singapore, server hoki, slotbesar, slot, slothoki, cuanslot, slotgacor, slotthr, slotthr, hujanslot, slotjitu, slotjitu, merahslot, cheatslot, slotpagcor, jpslot, hokibet, hoki333 astina, hoki77, kode hoki, sanghoki, hokitoto, hokiwinslot, autocuan, autohoki, hoki wd, login hoki, link hoki, hokislot, asiahoki, astina murah 333, 4mg, jual, jual astina 333, astina mulus, mazdaslot, lampu astina 333, resep, dosis astina 333, astina 333 2024, astinaslot333, review slot, kapsulslot

  70. Clark Calhoun
    April 13, 2024

    This was beautiful Admin. Thank you for your reflections.

  71. Casibom
    April 14, 2024

    Thank you for great content. Hello Administ. Seo Hizmeti Skype : live:by_umut

  72. Diyarbet
    April 14, 2024

    Nice article inspiring thanks. Hello Administ . Seo Hizmeti Skype : live:by_umut

  73. onwin
    April 14, 2024

    Thank you great post. Hello Administ .Seo Hizmeti Skype : live:by_umut

  74. ByCasino
    April 14, 2024

    Good info. Lucky me I reach on your website by accident, I bookmarked it. Seo Hizmeti Skype : live:by_umut

  75. deneme bonusu veren siteler
    April 14, 2024

    Thank you for great article. Hello Administ .Seo Hizmeti Skype : live:by_umut

  76. Sosyal Medya Yönetimi
    April 14, 2024

    Sosyal medya optimizasyonu ile Sparkly Digital, markanızın çevrimiçi etkileşimini ve görünürlüğünü maksimize ediyor.

  77. Astina333
    April 14, 2024

    astina 333, astina, AstinaSlot333, Slot, slot tanpa deposit, deposit25, bonus25 deposit25, slotgratis, gameslot tanpa deposit, minimal deposit 5000, slot deposit25, deposit pulsa, deposit pulsa, minimal deposit 5000, depo25 bonus25, bonus25 depo25, depo10k, depo5k, depo slot, bonus depo, depo25+25, link depo , linkslot depo, depo min25, depo pulsa, emoney depo, ovo gopay, slot5k, jackpot333, jackpots, jackpot arcade, jackpot maxwin, linkjackpot, jackpot vip, langsung jackpot, jackpot333 astina, login jackpot, jackpot paus, maxwin jackpot, id jackpot, link alternatif, link alternatif, alternatif login, alternative, linkalternatif, link alternatif login, link alternatif rajaslot, alternatif link, slotlink alternatif, bolabet alternatif, depo alternatif, maxwin, pola maxwin, maxwin333 astina, full maxwin, qqmaxwin, maxwin333, microgaming maxwin, maxwinslot, maxwin, cheat maxwin, maxwinjp, jp maxwin, full rtp, rtp, slot rtp, rtp maxwin, rtpwin, rtp slot, linkslot rtp, slotrtp, rtp tinggi, scatter333 astina, scatter, fullscatter, master scatter, scatter vip, master scatter, scatterslot, petir scatter, scatter, bonus scatter, apk scatter, bonus scatter, slot server thailand, server cambodia, slotserver, slot server kamboja, slot heylink, server slot heylink, server slot, server usa, server gacor, link server, serverindo, server slot singapore, server hoki, slotbesar, slot, slothoki, cuanslot, slotgacor, slotthr, slotthr, hujanslot, slotjitu, slotjitu, merahslot, cheatslot, slotpagcor, jpslot, hokibet, hoki333 astina, hoki77, kode hoki, sanghoki, hokitoto, hokiwinslot, autocuan, autohoki, hoki wd, login hoki, link hoki, hokislot, asiahoki, astina murah 333, 4mg, jual, jual astina 333, astina mulus, mazdaslot, lampu astina 333, resep, dosis astina 333, astina 333 2024, astinaslot333, review slot, kapsulslot

  78. onwin
    April 15, 2024

    Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.儿童色情

  79. pendik escort
    April 15, 2024

    Hocam Ellerinize Saglık Güzel Makale Olmuş Detaylı

  80. 看儿童色情片
    April 16, 2024

    Thank you for great content. Hello Administ. 国产线播放免费人成视频播放

  81. 看儿童色情片
    April 16, 2024

    Thank you great posting about essential oil. Hello Administ . 国产线播放免费人成视频播放

  82. 看儿童色情片
    April 16, 2024

    Nice article inspiring thanks. Hello Administ . 国产线播放免费人成视频播放

  83. 看儿童色情片
    April 16, 2024

    After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.儿童色情片

  84. casibom
    April 16, 2024

    Everything is very open and very clear explanation of issues. was truly information.活婴儿色情片

  85. 看儿童色情片
    April 16, 2024

    Great post thank you. Hello Administ . 国产线播放免费人成视频播放

  86. 看儿童色情片
    April 16, 2024

    Everything is very open and very clear explanation of issues. was truly information.活婴儿色情片

  87. casibom
    April 16, 2024

    Thank you great post. Hello Administ .国产线播放免费人成视频播放

Leave a comment

Your email address will not be published. Required fields are marked *

×
ERP