由于错误,无法在cmd上签名apk文件 [英] Cannot Sign apk file on cmd due to errors

查看:484
本文介绍了由于错误,无法在cmd上签名apk文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在运行的是


jarsigner -verbose -keystore C:\Users\myuser\Desktop\myCertificate.keystore C:\folder\myapp.apk myKey


然后我被要求输入密码,并且输入正确。最后我得到:


jarsigner:无法打开jar文件:C:\myapp.apk


我按照此处

解决方案

尝试这些说明,并确保将文件名放在引号中它们有空格。



http://developer.android.com/tools/publishing/app-signing.html#releasemode


I am trying to sign an .apk file created by Phonegap in a Windows 7 system.

Here is what I'm running:

jarsigner -verbose -keystore C:\Users\myuser\Desktop\myCertificate.keystore C:\folder\myapp.apk myKey

Then I'm asked for the password and I enter it correctly. Lastly I get:

jarsigner: unable to open jar file: C:\myapp.apk

I'm following the instructions from here

解决方案

Try these instructions, and make sure you put filenames in quotes if they have spaces.

http://developer.android.com/tools/publishing/app-signing.html#releasemode

这篇关于由于错误,无法在cmd上签名apk文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆