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.
androidxpackages 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"
- 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'
- 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!
Oldest comments (0)