题名 | Towards the Adoption and Adaptation of the AndroidX Library: An Empirical Study |
作者 | |
通讯作者 | Yepang Liu |
DOI | |
发表日期 | 2023
|
会议名称 | IEEE 23rd International Conference on Software Quality, Reliability, and Security (QRS)
|
ISSN | 2693-9185
|
ISBN | 979-8-3503-1959-0
|
会议录名称 | |
页码 | 418-427
|
会议日期 | 22-26 Oct. 2023
|
会议地点 | Chiang Mai, Thailand
|
摘要 | 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. |
关键词 | |
学校署名 | 第一
; 通讯
|
相关链接 | [IEEE记录] |
收录类别 | |
EI入藏号 | 20240315398949
|
EI主题词 | Android (Operating System)
; Application Programming Interfaces (API)
; Java Programming Language
; Open Source Software
|
EI分类号 | Surveying:405.3
; Computer Software, Data HAndling And Applications:723
; Computer Programming Languages:723.1.1
|
来源库 | IEEE
|
全文链接 | https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=10366772 |
引用统计 | |
成果类型 | 会议论文 |
条目标识符 | http://sustech.caswiz.com/handle/2SGJ60CL/673721 |
专题 | 南方科技大学 |
作者单位 | Southern University of Science and Technology, Shenzhen, China |
第一作者单位 | 南方科技大学 |
通讯作者单位 | 南方科技大学 |
第一作者的第一单位 | 南方科技大学 |
推荐引用方式 GB/T 7714 |
Jiacheng Li,Kerui Huang,Sinan Wang,et al. Towards the Adoption and Adaptation of the AndroidX Library: An Empirical Study[C],2023:418-427.
|
条目包含的文件 | 条目无相关文件。 |
|
除非特别说明,本系统中所有内容都受版权保护,并保留所有权利。
修改评论