debug buildType 设置了 applicationIdSuffix = ".debug",导致 debug 包名为 com.rwadurian.mining_app.debug,release 包名为 com.rwadurian.mining_app。Android 将它们视为两个不同应用, 升级安装 release 包时不覆盖 debug 包,出现两个相同图标。 移除 applicationIdSuffix 后 debug/release 使用同一包名, 升级安装时会正确覆盖旧版本。versionNameSuffix 保留用于区分版本号。 注:用户手机上需手动卸载旧的 debug 包才能清除已存在的重复图标。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| scripts | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| DEVELOPMENT_GUIDE.md | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
mining_app
A new Flutter project.
Getting Started
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.