Android build failure due to deprecated package attribute and outdated AGP configuration
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- build-system, mobile
调研方向
首先检查示例项目 android 文件夹中的 AndroidManifest.xml 和 build.gradle 文件,然后按照描述使用 AGP 8+ 重现故障。更新 Android 构建配置以满足所述的 namespace 和 application ID 要求,并验证项目能使用最新稳定版 Flutter 成功构建。
由索引模型根据 Issue 内容生成。
描述
Description
When building the Dual Screen example project with the latest Android Gradle Plugin (AGP 8+), the build fails due to:
- The use of the deprecated
packageattribute inAndroidManifest.xml - An outdated AGP configuration in
build.gradle
AGP 8+ requires that the package name be defined in Gradle using the namespace property for source code and applicationId for the APK. Keeping the package in the manifest causes a build error.
Steps to Reproduce
- Clone the repository
- Upgrade Flutter to the latest stable
- Open
androidfolder in Android Studio - Build the project using AGP 8+
- Observe build failure with error regarding
packageattribute
- 主要语言
- Dart
- 星标
- 94
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 79/100
ccch1mneyyy/dsh-Go#731 ·
维护者通常 1 天内回复
-
enhancement good first issue help wanted
难度 2/5 1-3 小时 新手友好度 88/100
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
berkmancenter/frankly#753 ·
维护者通常 4 天内回复
-
good first issue mobile translation-km
难度 2/5 1-3 小时 新手友好度 92/100
NemSothea/LifeLinkKh#66 ·
维护者通常 4 天内回复