谷歌播放应用程序上传失败

My *_*God 11 android google-play google-play-services

apk上传未能进入谷歌游戏市场.

我正在尝试将我的应用程序的升级版本上传到谷歌播放,但我一直收到消息 -

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.
Run Code Online (Sandbox Code Playgroud)

还有一些东西在寻找,com.corntail.project而且还没有找到.

更新:

在我AndroidManifest.xml的相关代码是 -

<?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" >
Run Code Online (Sandbox Code Playgroud)

Guy*_*Guy 22

如果您使用的是Android Studio或使用gradle构建,请编辑gradle脚本(build.gradle)以更改包名称和版本.这些值会覆盖您的AndroidManifest.xml文件.

例如:

 defaultConfig {
        applicationId "com.xyz.abc"
        minSdkVersion 16
        targetSdkVersion 19
        versionCode 2
        versionName "1.1"
    }
Run Code Online (Sandbox Code Playgroud)


PaN*_*TEC 4

您需要android:versionCode="1"在 AndroidManifest 上将您的值更改为 2...