Android build failure due to deprecated package attribute and outdated AGP configuration

未关闭
#20 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

@Madhan-Rkv-10 已经在做这个了。

开始于 2025年8月10日。

  • #21 来自 @Madhan-Rkv-10 —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
android, dart, flutter

调研方向

首先检查示例项目 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:

  1. The use of the deprecated package attribute in AndroidManifest.xml
  2. 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
  1. Clone the repository
  2. Upgrade Flutter to the latest stable
  3. Open android folder in Android Studio
  4. Build the project using AGP 8+
  5. Observe build failure with error regarding package attribute
主要语言
Dart
星标
94
派生
29
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

相似的 Issue

更多 Dart Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。