问题描述
apk 上传到 google play 市场失败.
apk upload failed to the google play market.
我正在尝试将我的应用程序的升级版本上传到 google play,但我不断收到消息 -
I am trying to upload the upgraded version of my app to the google play but I am keep getting the message -
Upload failed
You need to use a different version code for your APK because you already have one with version code 1.
Your APK needs to have the package name com.corntail.project.
还有一些东西正在寻找com.corntail.project
,但没有找到.
There is still something that is looking for com.corntail.project
and it is not being found.
更新:
在我的AndroidManifest.xml
中,相关代码是——
In my AndroidManifest.xml
, the relevant code is -
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.corntail.main"
android:versionCode="1"
android:versionName="1.0" >
推荐答案
如果您使用 Android Studio 或使用 gradle 构建,请编辑您的 gradle 脚本 (build.gradle) 以更改您的包名称和版本.这些值会覆盖您的 AndroidManifest.xml 文件.
If you're using Android Studio or building with gradle, edit your gradle script (build.gradle) to change your package name and version. These values overwrite your AndroidManifest.xml file.
例如:
defaultConfig {
applicationId "com.xyz.abc"
minSdkVersion 16
targetSdkVersion 19
versionCode 2
versionName "1.1"
}
这篇关于google play应用上传失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!