Android Studio正在从Manifest of Library Project中获取versionCode而不是我的Manifest

时间:2015-06-04 08:56:45

标签: android android-studio manifest android-version

我正在将我的应用移植到Android Studio,并遇到了这个问题,即从库项目的清单文件1中检测到APK的版本代码(上传到Google Play时)circularImageView 1}})。我的实际应用程序在下面命名为app

enter image description here

当我尝试将应用上传到Google Play时,它说我的versionCode = 1(见下面的截图): enter image description here

请参阅下面的实际应用中的版本代码58enter image description here

2 个答案:

答案 0 :(得分:4)

Android工作室始终从您的项目build.gradle文件

获取版本

请参阅Android Studio build.gradle

中的以下快照

enter image description here

答案 1 :(得分:0)

更改应用的build.gradle中的代码版本。 Android工作室在运行时结合了Manifest。我想如果你没有在build.gradle中提到codeVersion,那么它会在合并所有项目后从Manifest中选择版本。