创建密钥库的Andr​​oid应用程序时,访问被拒绝 [英] Access denied when creating keystore for Android app

查看:1291
本文介绍了创建密钥库的Andr​​oid应用程序时,访问被拒绝的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想签我的Andr​​oid应用程序,所以我可以在市场释放。当我生成密钥库,我得到一个拒绝访问错误。我该如何解决这个问题?

I am trying to sign my Android app so I can release it in Market. When I generate the keystore, I get an access denied error. How do I fix this?

这是我一直在努力做的:

This is what I've been trying to do:

  1. 在Eclipse中太阳神右键单击项目。
  2. 在安卓工具>导出签名的应用程序包。
  3. 点击下一步。
  4. 在我选中创建新的密钥库,实现它无助于帮助我。它仍然要求密钥库的位置。于是我决定这样做了艰辛的道路。
  5. \ Program Files文件\的Java \ jdk1.6.0_25 \斌和授予的 CREATOR OWNER 熄灭只读访问Ç code>组完全控制的文件夹。
  6. 在Windows 7的64位。
  7. 开启命令行
  8. 运行到 C:\ Program Files文件\的Java \ jdk1.6.0_25 \斌
  9. 运行密钥工具。
  10. 在收到一个拒绝访问错误。
  1. Right click project in Eclipse Helios.
  2. Android Tools > Export Signed Application Package.
  3. Click next.
  4. I check "Create new keystore" and realize it does nothing to help me. It still asks for the location of keystore. So I decide to do it the hard way.
  5. Turned off read-only access on C:\Program Files\Java\jdk1.6.0_25\bin and granted the CREATOR OWNER group full control of the folder.
  6. Open command line on Windows 7 64-bit.
  7. Traverse to C:\Program Files\Java\jdk1.6.0_25\bin.
  8. Run keytool.
  9. Got an access denied error.

C:\Program Files\Java\jdk1.6.0_25\bin>keytool -genkey -v -alias company -keyalg R
SA -keysize 2048 -validity 10000 -keystore company.keystore
Enter keystore password:
Re-enter new password:
What is your first and last name?
  [Unknown]:  John Smith
What is the name of your organizational unit?
  [Unknown]:  Android
What is the name of your organization?
  [Unknown]:  Company
What is the name of your City or Locality?
  [Unknown]:  Albany
What is the name of your State or Province?
  [Unknown]:  NY
What is the two-letter country code for this unit?
  [Unknown]:  US
Is CN=John Smith, OU=Android, O=Company, L=Albany, ST=NY, C=US correct?
  [no]:  yes

Generating 2,048 bit RSA key pair and self-signed certificate (SHA1withRSA) with
 a validity of 10,000 days
        for: CN=John Smith, OU=Android, O=Company, L=Albany, ST=NY, C=US
Enter key password for <veetle>
        (RETURN if same as keystore password):
Re-enter new password:
[Storing company.keystore]
keytool error: java.io.FileNotFoundException: veetle.keystore (Access is denied)

java.io.FileNotFoundException: veetle.keystore (Access is denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
        at sun.security.tools.KeyTool.doCommands(KeyTool.java:902)
        at sun.security.tools.KeyTool.run(KeyTool.java:172)
        at sun.security.tools.KeyTool.main(KeyTool.java:166)

修改

每次我检查了文件夹的权限,我看到它已经恢复到只读。每当我关机没有错误只读的。

Everytime I check the folder permissions, I see that it has reverted back to read-only. There were no errors whenever I turned off read-only.

推荐答案

它可以帮助你。你必须指定文件的位置,将生成。例如指定的 C:\ Documents和Settings \登录名\ market.keystore

It does help you. You have to specify the location of the file that will be generated. For example specify C:\Documents and Settings\loginname\market.keystore

这篇关于创建密钥库的Andr​​oid应用程序时,访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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