如何制作“科尔多瓦” - 发布'使用签名的apk

时间:2016-06-17 09:02:26

标签: android cordova google-play

问题

我尝试使用cordova直接在我的设备上安装和测试我的应用的发布版本。

虽然我签了apk,但cordova试图将未签名的版本安装到设备上。如何通过cordova测试发布版本?

详细

运行时

cordova run --release --buildConfig="build.json"

我得到以下结果:

[...]

BUILD SUCCESSFUL

Total time: 15.086 secs
Built the following apk(s):
        C:/myProject/platforms/android/build/outputs/apk/android-release-unsigned.apk
        C:/myProject/platforms/android/build/outputs/apk/android-release.apk
Using apk: C:/myProject/platforms/android/build/outputs/apk/android-release-unsigned.apk
Error: Failed to install apk to device: pkg: /data/local/tmp/android-release-unsigned.apk

Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]

1 个答案:

答案 0 :(得分:2)

This issue已修复,但尚未发布 您现在可以尝试使用cordova-android的开发版本:
private void DoNavigateCommand(string title) { if (title == "Derp") ShowViewModel<DerpViewModel>(); }