W
W
winstan2015-10-30 02:09:41
Android
winstan, 2015-10-30 02:09:41

Compiling Cordova for android, how to build it with a signature?

I am building a cordova project for android, an unsigned file will be created, but if I try to set up a signature, this is what I see in the console

1>  Wrote out Android package name to "com.delakey.gate"
1>  ------ Выполнено копирование C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\bin\Android\Release\VSBuildInfo.xml в platforms\android\assets\www\VSBuildInfo.xml
1>  ------ Платформа сборки: android
1>  Release
1>  ------ Параметры конфигурации сборки: --release
1>  Running command: cmd "/s /c "C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\platforms\android\cordova\build.bat --release --buildConfig=C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\build.json""
1>  ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
1>  JAVA_HOME=C:\Program Files\Java\jdk1.8.0_51
1>  C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\build.json
1>  Reading build config file: C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\build.json
1>  Running: C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\platforms\android\gradlew cdvBuildRelease -b C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\platforms\android\build.gradle -Dorg.gradle.daemon=true
1>
1>  BUILD FAILED
1>
1>  Total time: 2.168 secs
1>  Command finished with error code 1: cmd /s /c "C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\platforms\android\cordova\build.bat --release --buildConfig=C:\Users\DELAKEY\Source\Repos\gate\src\Gate\Gate\build.json"
1>ERROR building one of the platforms : error : cmd: Command failed with exit code 1
1>  You may not have the required environment or OS to build this project
1>MDAVSCLI : error : cmd: Command failed with exit code 1
========== Сборка: успешно: 0, с ошибками: 1, без изменений: 0, пропущено: 0 ==========

The settings are
build.json
{
     "android": {
         "release": {
             "keystore": "c:\\key.keystore",
             "storePassword": "112233",
             "alias": "delakey",
             "password" : "112233",
             "keystoreType": ""
         }
     }
 }

ant
key.store=c:\\key.keystore
key.alias=delakey
key.store.password=112233
key.alias.password=112233

did approximately according to this "instruction"
taco.visualstudio.com/en-us/docs/tutorial-package-...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MetaDone, 2015-10-30
@MetaDone

stackoverflow.com/questions/26356359/error-android...
similar problem and solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question