根据这份Google文档,我期望Gradle会在我的manifest.xml文件中更新版本号,特别是这段引用部分:
The defaultConfig element configures core settings and entries in the manifest file (AndroidManifest.xml) dynamically from the build system. The values in defaultConfig override those in the manifest file.
当我更改Gradle文件的版本代码或版本名称时,我的清单文件中的值没有改变。
- 这是正常行为吗?
- 在清单文件和Gradle构建之间,哪些值设置了版本代码和名称?
- 如何使清单文件中的版本与Gradle构建更加明显相关?