我重命名了我的应用程序,现在我无法在 cordova 中发布构建

I renamed my app and now I can't release build in cordova

我正在尝试为 Play 商店构建我的 android 应用程序,
该应用程序是在 cordova v5.3.3 中构建的。

我能够构建我的应用程序的签名发布版本,但是如果我将它导入 play.developer 网站,我会收到此错误:

Upload failed
Your APK must have the package name com.NEXTapp.app.
You must use a different versioncode for your APK since there allready is an APK with versioncode 48.

当我创建 cordova 项目时,我将 com.COMPANYapp.app 设置为包名称,我猜测包名称的更改是我出现问题的原因。

我可以在我的 androidManifest.xml 文件中编辑版本代码和包名称条目,但是一旦我 运行 构建 android --release 命令,它就会恢复。

谁能帮我用正确的版本代码和程序包名称签署这个应用程序?

看看documentation of the config.xml file

Cordova 在构建时使用此信息。

编辑(更多细节:) 例如:

<widget id="com.example.hello" version="0.0.1">
    <name>HelloWorld</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@callback.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <content src="index.html" />
    <access origin="*" />
</widget>

id 和版本信息将用于构建版本。