eclipse 生成最终存档时出错:无法获取调试签名密钥

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7698636/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:07:10  来源:igfitidea点击:

Error generating final archive: Unable to get debug signature key

androideclipsemacosavd

提问by slcott

I cannot build and run my android project using Eclipse on mac 10.7. The error I receive is

我无法在 mac 10.7 上使用 Eclipse 构建和运行我的 android 项目。我收到的错误是

Error generating final archive: Unable to get debug signature key

生成最终存档时出错:无法获取调试签名密钥

  • Changed the permissions in the ~/.android directory with no success.

  • Tried generating another project

  • Followed the guide of setting up an SDK and was even successful in a windows environment for my windows terminal at my workplace.

  • Installed the packages using AVD and have set the location of my SDK location.

  • Added my SDK tools to my $PATH variable.

  • 更改 ~/.android 目录中的权限没有成功。

  • 尝试生成另一个项目

  • 按照设置SDK的指南,甚至在我工作场所的Windows终端的Windows环境中也取得了成功。

  • 使用 AVD 安装了软件包并设置了我的 SDK 位置。

  • 将我的 SDK 工具添加到我的 $PATH 变量中。

I also receive another error when I try to Create AVD

当我尝试创建 AVD 时,我也收到另一个错误

[2011-10-08 13:42:17 - SDK Manager] Error: null

[2011-10-08 13:42:17 - SDK 管理器] 错误:空

What other step have I missed?

我还错过了什么步骤?

回答by slcott

Deleted the ~/.android directory, re-run AVD manager and then rebuild project.

删除 ~/.android 目录,重新运行 AVD 管理器,然后重建项目。

回答by wil

Removing the directory, re-running the AVD manager, and rebuilding didn't fix this problem for me, and best I can tell, it's related to directory permissions.

删除目录、重新运行 AVD 管理器和重建对我来说并没有解决这个问题,我能说的最好,它与目录权限有关。

When I let the AVD manager or keytool.exe create my .androiddirectory, the permissions on the directory were:

当我让 AVD 管理器或 keytool.exe 创建我的.android目录时,该目录的权限是:

d---------

In my case, I

就我而言,我

  1. removed the .androiddirectory
  2. mkdir .android
  3. build and run.
  1. 删除了.android目录
  2. mkdir .android
  3. 构建并运行。

Since I was running from eclipse with the ADT plugin, it prompted me to create a new virtual Android device (since it stores them in the .android/avddirectory). And this time, file permissions on .androidand everything else came out fine.

由于我使用 ADT 插件从 Eclipse 运行,它提示我创建一个新的虚拟 Android 设备(因为它将它们存储在.android/avd目录中)。这一次,文件权限.android和其他一切都很好。

回答by user2170628

Was getting Error: null when creating AVD using the OSX Android dev bundle. Bundle was installed in /dev folder in Desktop folder - /Users/me/Desktop/Dev . Needed to create .android folder in user folder - /Users/me/.android .

使用 OSX And​​roid 开发包创建 AVD 时出现错误:null。捆绑包安装在桌面文件夹 - /Users/me/Desktop/Dev 的 /dev 文件夹中。需要在用户文件夹中创建 .android 文件夹 - /Users/me/.android 。