arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.06186cs.SE
收藏

诊断与解决 Android 应用构建问题:一项实证研究

Diagnosing and Resolving Android Applications Building Issues: An Empirical Study

University of Cincinnati(辛辛那提大学);California State University, Long Beach(加州州立大学长滩分校);University of Central Missouri(中密苏里大学);The University of Arizona(亚利桑那大学)

Lakshmi Priya Bodepudi, Yutong Zhao, Ming Quan Fu, Yuanyuan Wu, Sen He, Yu Zhao

AI总结:

本文通过实证分析 200 个开源 Android 项目,系统诊断四类构建错误并提出修复策略,成功解决 75.56% 的失败案例,同时验证了 GPT-5 在辅助诊断中的有效性。

摘要:

由于复杂的依赖关系、多样化的配置以及 Android 生态系统的快速演进,可靠地构建 Android 应用仍然是一项持续的挑战。本研究对 200 个使用 Java 和 Kotlin 编写的开源 Android 项目进行了实证分析,以诊断和解决构建失败问题。通过一个包含数据收集、构建执行、失败分类、修复策略设计和 LLM 辅助评估的五个阶段流程,我们识别出四类主要的构建错误:环境问题、依赖与 Gradle 任务错误、配置问题以及语法/API 不兼容。在最初构建失败的 135 个项目中,我们的诊断与修复策略使开发者能够解决 102 个案例(75.56%),显著减少了故障排查工作量。我们进一步考察了大型语言模型(如 GPT-5)在辅助错误诊断方面的潜力,其在建议可行修复方案上取得了 53.3% 的成功率。对项目属性的分析表明,构建成功受编程语言、项目年限和应用规模的影响。这些发现为提高 Android 构建可靠性以及推进 AI 辅助软件维护提供了实用的见解。

英文摘要:

Building Android applications reliably remains a persistent challenge due to complex dependencies, diverse configurations, and the rapid evolution of the Android ecosystem. This study conducts an empirical analysis of 200 open-source Android projects written in Java and Kotlin to diagnose and resolve build failures. Through a five-phase process encompassing data collection, build execution, failure classification, repair strategy design, and LLM-assisted evaluation, we identified four primary types of build errors: environment issues, dependency and Gradle task errors, configuration problems, and syntax/API incompatibilities. Among the 135 projects that initially failed to build, our diagnostic and repair strategy enabled developers to resolve 102 cases (75.56%), significantly reducing troubleshooting effort. We further examined the potential of Large Language Models, such as GPT-5, to assist in error diagnosis, achieving a 53.3% success rate in suggesting viable fixes. An analysis of project attributes revealed that build success is influenced by programming language, project age, and app size. These findings provide practical insights into improving Android build reliability and advancing AI-assisted software maintenance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑