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

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

问题描述

我使用的是Mac OSX 10.7.5,我最近重新安装了最新的ADT 23,该版本命名为adt-bundle-mac-x86_64-20140624。



我删除了旧版本的ADT,它仅支持API 18(我不记得它的版本代码是...),然后再安装新的。



当我完成安装时,SDK Manager将API更新为19,但是我没有更新4.4W和API 20.



我试图创建一个新的模拟器SD卡字段上的设置值,然后按OK。



控制面板将出现错误消息:



[2014-07-09 02:44:13 - SDK Manager]无法创建SD卡。



[2014-07-09 02:44:13 - SDK管理器]无法在AVD文件夹中创建sdcard。



使用相同的创建步骤,上述问题没有显示在我以前使用的旧版本的ADT中。



我试过如果我没有设置SD卡值创建一个新的模拟器,那可以b e创建成功!



我还试图分开安装Eclipse 4.4 Luna和最新的SDK包,它仍然有同样的问题...



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



请给我一些建议来解决我的问题,欣赏!

解决方案

自从你打开这个案例已经2个月了,所以我希望你现在已经达成了一个决议。实际上,在使用Eclipse ADT软件包的Mac 10.7.5操作系统上创建SD卡时遇到了同样的问题。当我不能依赖GUI时,我转过来使用CLI使用位于sdk / tools文件夹(例如:mksdcard 64M /tmp/sdcard.img)中的mksdcard命令创建sdcard。在这样做的时候,我注意到我收到了一个非法指令:4错误。当进一步跟踪此错误时(例如:什么是非法指令:4错误,为什么-mmacosx-version-min = 10.x修复它?)我注意到这是一个问题, mksdcard命令被编译,而我的10.7.5操作系统无法执行此命令。



解决方案(至少对于我的情况):


  1. 在工具文件夹中备份mksdcard命令。示例cp
    mksdcard mksdcard.bak

  2. 下载已知在10.7.5操作系统上工作的工具的先前版本( http://dl-ssl.google.com/android/repository/tools_r22.6.2-macosx.zip

  3. 提取工具并将mksdcard命令从新提取的文件夹复制到Eclipse / sdk / tools文件夹(基本上替换了我们知道的mksdcard命令不起作用) 。

  4. 重新启动Eclipse

  5. 使用AVD管理器创建一个新的AVD,并为sdcard分配一个值(例如:32M)

  6. 您不应再看到无法创建sdcard错误。

解决方案2:
将Mac更新到更高版本(10.8.x或更高版本)。我已经测试了这一点,并确认mksdcard正在处理更新版本的Mac OS X,没有这个问题。



让我知道这是否也解决了你的问题。 / p>

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".

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.

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

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-07-09 02:44:13 - SDK Manager] Failed to create the SD card.

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

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

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

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

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

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

解决方案

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. 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.

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文件夹中创建sdcard的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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