简体   繁体   English

更新sencha touch 2 android app

[英]updating sencha touch 2 android app

I am trying to submit a update to the google play store for my sencha touch 2 app. 我正在尝试为我的sencha touch 2应用程序提交谷歌游戏商店的更新。

the following is my packager.json file. 以下是我的packager.json文件。

{
    "applicationName":"DBS",
    "applicationId":"com.keshav.dbs",
    "versionCode":"2",
    "versionString":"1.0.1",
    "iconName":"ic_launcher.png",
    "inputPath":"./build/package/Android",
    "outputPath":"./build/native/Android",
    "configuration":"Release",
    "platform":"Android",
    "deviceType":"Universal",
    "certificatePath":"/Developer/Android-Keystore/myAndroidKeyStore",
    "certificateAlias":"myandroidkey",
    "certificatePassword":"<password>",
    "sdkPath":"/Developer/sdks/android-sdk-macosx",
    "androidAPILevel":"16",
    "orientations": [
        "portrait"
    ]
}

I run the following command 我运行以下命令

sencha package run packager.json

this creates the apk file however when i try to upload the new apk i get a message saying the versonCode 1 is already in use. 这会创建apk文件,但是当我尝试上传新的apk时,我收到一条消息,说明versonCode 1已经在使用中。

The instruction of packaging on Senchas website dont include the "versionCode" property I added that my self Senchas网站上的包装说明不包括我自己添加的"versionCode"属性

Does anyone know how to change the version code for sencha app? 有谁知道如何更改sencha应用程序的版本代码?

I was able to edit platforms/cordova/android/AndroidManifest.xml and update the android:versionCode, then run sencha app build native 我能够编辑平台/ cordova / android / AndroidManifest.xml并更新android:versionCode,然后运行sencha app build native

It built the new APK (signed, based on my config) and it was accepted by the Google Play store. 它构建了新的APK(根据我的配置签名),它已被Google Play商店接受。

Much easier than un-packaging and repackaging. 比非包装和重新包装容易得多。

well here it is ... 在这里它是......

After looking around the internet i found this approach works.... 环顾互联网后,我发现这种方法有效....

After Sencah creates the package use apktool to un-package the apk then edit the AndroidManifest.xml and package it up again with apktool. Sencah创建包后使用apktool解包apk,然后编辑AndroidManifest.xml并用apktool再次打包。

Note when you re-package the app tit will be unsigned so you will have to sign it again for it install on peoples devices 请注意,当您重新打包应用程序时,山雀将是未签名的,因此您必须再次签名才能在人员设备上安装

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM