无法在Mac 10.7.5的AVD文件夹中创建SD卡 [英] Failed to create sdcard in the AVD folder on Mac 10.7.5

查看:232
本文介绍了无法在Mac 10.7.5的AVD文件夹中创建SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Mac OSX 10.7.5和我最近重新安装最新的ADT 23版本命名为ADT束-MAC-x86_64-20140624。

I'm using Mac OSX 10.7.5 and I recently re-install the newest ADT 23 which version named "adt-bundle-mac-x86_64-20140624".

我删除ADT的旧版本,只以18 API支持(我不记得版本code是它是什么......),然后安装新的。

I removed the older version of ADT which only support to API 18 (I don't remember what the version code is it...) before install the new one.

当我安装完成后,通过SDK管理器更新API至19日,但我还没有更新的4.4W和API 20。

While I completed installation, update API to 19 by SDK Manager, but I haven't updated 4.4W and API 20.

我试图创建与SD卡领域设定值一个新的模拟器,然后preSS确定。

I tried to create a new emulator with the setting value on SD Card field, and then press OK.

控制台面板会出现错误信息:

The console panel would occurred error message:

[2014年7月9日2点44分13秒 - SDK管理器]。无法创建SD卡

[2014-07-09 02:44:13 - SDK Manager] Failed to create the SD card.

[2014年7月9日2点44分13秒 - SDK管理器]未能在AVD文件夹中创建SD卡

[2014-07-09 02:44:13 - SDK Manager] Failed to create sdcard in the AVD folder.

通过与创建步骤,上面还没有ADT的旧版本,我以前用过显示的问题。

With the same creating steps, the problem above haven't displayed in the older version of ADT that I used before.

我想,如果我不设置SD卡值来创建一个新的模拟器,可以创建成功!

I tried if I don't set SD card value to create a new emulator, that can be created successfully!

我也试过单独安装Eclipse 4.4露娜和最新的SDK包,它仍然有同样的问题...

I also tried to install Eclipse 4.4 Luna and the newest SDK package separately, it still has the same problem...

我不知道是否有我的OSX的任何问题或有我错过了在安装过程中设置的任何步骤。

I'm not sure if there's any problem on my OSX or have I missed any steps of settings during installation.

请好心给我一些建议,以解决我的问题,AP preciate!

Please kindly give me some suggestions to fix my problem, appreciate!

推荐答案

它已经2个月以来你打开这种情况下,所以我希望你现在所达到的分辨率。其实我已经经历过同样的问题,与创建使用Eclipse ADT捆绑在我的Mac OS 10.7.5 SD卡。当我无法依靠GUI,我搬了使用CLI创建使用位于SDK / Tools文件夹中mksdcard命令的SD卡(如:mksdcard 64M /tmp/sdcard.img)。在此过程中,我注意到,我收到了一个非法指令:4错误。当进一步向下跟踪这个错误(例如:<一href=\"http://stackoverflow.com/questions/14268887/what-is-the-illegal-instruction-4-error-and-why-does-mmacosx-version-min-10\">What是&QUOT;非法指令:4英寸错误,为什么&QUOT; -mmacosx版本分钟= 10.x的&QUOT;修复它)我注意到,它与该mksdcard命令编译方式的问题,?我的10.7.5操作系统是不是能够执行此命令。

It's been 2 months since you've opened this case, so I hope that you've reached a resolution by now. I've actually experienced the same issue with creating an SD Card on my Mac 10.7.5 OS using the Eclipse ADT Bundle. When I couldn't rely on the GUI, I moved over to using the CLI for creating the sdcard using the mksdcard command located in the sdk/tools folder (ex: mksdcard 64M /tmp/sdcard.img). In doing so, I noticed that I was receiving an Illegal Instruction: 4 error. When tracking this error down further (ex: What is the "Illegal Instruction: 4" error and why does "-mmacosx-version-min=10.x" fix it?) I noticed that it's an issue with the way that the mksdcard command was compiled and that my 10.7.5 OS was not capable of executing this command.

分辨率(至少在我的情况):

Resolution (at least for my case):


  1. 备份的工具文件夹中的mksdcard命令。例如CP
    mksdcard mksdcard.bak

  2. 下载据知在10.7.5操作系统的工作,该工具的previous版本(的 http://dl-ssl.google.com/android/repository/tool​​s_r22.6.2-macosx.zip

  3. 提取工具,并从新提取文件夹中复制mksdcard命令到Eclipse / SDK / tools文件夹(基本取代我们知道不起作用mksdcard命令)。

  4. 重启Eclipse

  5. 创建使用AVD管理器的新AVD并分配一个值:对于SD卡
  6. (例如32M)
  7. 您应该不会再看到无法创建SD卡错误。

  1. Backup the mksdcard command in the tools folder. Example cp mksdcard mksdcard.bak
  2. Download a previous version of the tools that were known to work on the 10.7.5 OS (http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip)
  3. Extract the tool and copy the mksdcard command from the newly extracted folder to your Eclipse/sdk/tools folder (essentially replacing the mksdcard command that we know doesn't work).
  4. Restart Eclipse
  5. Create a new AVD using the AVD manager and assign a value (ex: 32M) for the sdcard
  6. You should no longer see the failed to create sdcard error.

2分辨率:
将Mac更新到更高版本(10.8.x或以上)。我测试过这一点,并已确认mksdcard正在更高版本的Mac OS X的没有这个问题。

Resolution 2: Update your Mac to a later version (10.8.x or above). I've tested this and have confirmed that mksdcard is working on later versions of Mac OS X without this issue.

让我知道,如果这个解决您的问题,以及。

Let me know if this resolves your issue as well.

这篇关于无法在Mac 10.7.5的AVD文件夹中创建SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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