Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Victor Rattis
Victor Rattis

Posted on

     

The Price of using AndroidX.

Currently, It is recommended by Google to use AndroidX in our project to make it compatible with many Android versions.

"AndroidX is a major improvement to the original Android Support Library, which is no longer maintained.androidx packages fully replace the Support Library by providing feature parity and new libraries." (link)

Is there a price for that? Let's consider the following points...

Simple Hello World with 'androidx"

Alt Text

  • APK Size: 1.6 MB;
  • AndroidX Size has ~1.5 MB;
  • It has >10K methods (remembering in enabling the multi-dex if your app exceeds over 64K methods).

Simple Hello world without 'androidx'

Alt Text

  • APK Size has 102.7 KB.

Keep in mind: A dependency always has a price in a project and I think this should be taken into consideration before using it.

Just think about!

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Joined

More fromVictor Rattis

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp