【发布时间】:2017-02-27 04:20:36
【问题描述】:
我尝试在 android 上构建 Nativescript --release 但失败了。 这是调试结果:
* What went wrong:
A problem was found with the configuration of task ':packageF0F1F2Release'.
> File 'D:\NativeScript\key' specified for property 'signingConfig.storeFile' is not a file.
我找不到任何指南来使用带有 CLI 的 nativescript 解决此问题。我可以使用 android studio 构建,但我更喜欢使用 CLI。我使用 nativescript v 2.52 、 tns-core-module 2.51 和 tns-android 2.50 遵循此命令
┌─────────┬───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Usage │ Synopsis │
│ General │ $ tns build android [--compileSdk <API Level>] [--key-store-path <File Path> --key-store-password <Password> --key │
│ │ -store-alias <Name> --key-store-alias-password <Password>] [--release] [--static-bindings] [--copy-to <File Path>] │
└─────────┴───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
在模拟器上构建 debug.apk 没有问题。谢谢。
【问题讨论】:
-
您是否通过 --release 提供密钥库/别名/密钥库密码?
标签: android nativescript