我重命名了我的应用程序,现在我无法发布使用cordova的内置版本

时间:2015-10-19 12:56:19

标签: android cordova apk phonegap-build signing

我正在尝试为Play商店构建我的Android应用程序,
该应用程序是在cordova v5.3.3中构建的
我可以构建我的应用程序的签名版本,但是如果我在play.developer网站上导入它,我会收到此错误:

  

上传失败
  您的APK必须包名为com.NEXTapp.app   您   必须为您的APK使用不同的版本代码,因为已经存在   带有版本代码48的APK。

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

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

有人可以帮助我使用正确的版本代码和包名称来签署此应用程序吗?

1 个答案:

答案 0 :(得分:0)

查看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和版本信息将用于构建版本。