Android的 - 错误签名的apk我机智的jarsigner [英] Android - Error signing my apk wit jarsigner

查看:1052
本文介绍了Android的 - 错误签名的apk我机智的jarsigner的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个密钥文件是这样的:

I made a key file like this:

C:\Users\Alex>keytool -genkey -v -keystore alexkey.keystore -alias alexkey -keyalg RSA -keysize 2048 -validity 10000

然后我试图签下我的.apk文件与它是这样的:

and then I tried to sign my .apk file with it like this:

C:\>jarsigner -verbose -keystore alexkey.keystore problemio.apk alexkey

和我所保存的.apk文件右键单击Eclipse中的项目名称 - > Android的工具 - >导出未签名的应用程序包

and I saved the .apk file by right-clicking the project name in Eclipse --> Android tools --> Export unsigned application package.

然后我把在同一目录为重点的.apk文件,并从同一目录运行的jarsigner命令。

and then I put the .apk file in the same dir as the key, and ran the jarsigner command from that same dir.

任何想法,为什么我得到这个错误:

Any idea why I got this error:

jarsigner: unable to create: problemio.apk.sig

谢谢!

推荐答案

感谢@yorkw的答案,真正解决这个问题是一个文件夹的权限问题。请确保您可以修改文件夹中运行。我只是固定的同样的问题,我的自我通过确保我是正确的权限的文件夹中。

Credit to @yorkw for the answer, the real solution to this problem is a folder permissions issue. Make sure you are operating in a folder that you can modify. I just fixed that same problem for my self by making sure I was in a folder with the right permissions.

这篇关于Android的 - 错误签名的apk我机智的jarsigner的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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