Loading [a11y]/accessibility-menu.js
Towards the Adoption and Adaptation of the AndroidX Library: An Empirical Study | IEEE Conference Publication | IEEE Xplore

Towards the Adoption and Adaptation of the AndroidX Library: An Empirical Study


Abstract:

AndroidX is an official Android library that enables backward compatibility for Android APIs used by various apps. It is the successor of the Android Support library sinc...Show More

Abstract:

AndroidX is an official Android library that enables backward compatibility for Android APIs used by various apps. It is the successor of the Android Support library since Android 9.0. Since then, many apps that originally relied on Android Support needed to be adapted to use AndroidX. However, for app developers, such a migration task can be challenging and error-prone. Yet, there is no systematic study on the migration status of real-world Android apps or the issues that may arise during the migration to AndroidX. To fill this knowledge gap, we conducted the first comprehensive study concerning the adoption and adaptation of the AndroidX library. In this study, we inspected 171 Stack Overflow posts about AndroidX and identified common categories of issues that can occur when adapting apps to use AndroidX, as well as the causes. We also examined the trend of these issues in recent five years to assess their impact over time. Then, we investigated the utilization status of both Android Support and AndroidX libraries in 15,334 top commercial apps and 2,470 open-source apps. Finally, we developed an algorithm that utilizes cosine similarity to identify Java class mappings between Android Support and AndroidX. The algorithm allows us to recover an additional mapping of 579 Java class pairs, which can supplement the official class mapping. Our study reveals the following key findings: (1) Improper API usage, misuse of dependencies, and incorrect build configurations are common challenges faced by developers during the adoption of AndroidX; (2) Around 13.3% commercial apps and 17% open-source apps still rely on the Android Support library; (3) Inconsistencies are observed between the API migration table in Android Studio and the API mapping table provided in AndroidX documentation. (4) On average, the migrated AndroidX classes achieve a 0.978 code similarity score with the original Android Support classes.
Date of Conference: 22-26 October 2023
Date Added to IEEE Xplore: 25 December 2023
ISBN Information:

ISSN Information:

Conference Location: Chiang Mai, Thailand

1. Introduction

Android is the most popular open-source mobile operating system over the world. Due to its continuous evolution, Android undergoes frequent updates and releases. Consequently, Android app developers need to deal with compatibility issues across various OS versions [1], [2] and customized devices [3]. This presents a crucial technical challenge when building and maintaining Android apps.

Contact IEEE to Subscribe

References

References is not available for this document.