我尝试使用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]
答案 0 :(得分:2)
This issue已修复,但尚未发布
您现在可以尝试使用cordova-android的开发版本:
private void DoNavigateCommand(string title)
{
if (title == "Derp")
ShowViewModel<DerpViewModel>();
}