本文介绍了Ubuntu的 - 错误:无法创建SD卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到很多帖子关于写入SD卡,但我相信我的问题是不同的。我无法建立一个AVD的过程中创造的SD卡。

I see a lot of posts about writing to the SD card, but I believe my problem is different. I am unable to create the SD card during the process of building an AVD.

我最初试图使用Android SDK和AVD管理器来做到这一点,选择
命名:my_avd
目标:Android 2.2的 - API级别8
SD卡:尺寸:1024 MIB
皮肤:内置的默认(HVGA)
硬件:房产:抽象液晶密度,价值:160

I initially tried to use the Android SDK and AVD Manager to do this, selecting
Name: my_avd
Target: Android 2.2 - API Level 8
SD Card: Size: 1024 MiB
Skin: Built-In: Default (HVGA)
Hardware: Property: Abstracted LCD Density, Value: 160

这会弹出消息窗口:
创建AVD'my_avd的结果:
错误:无法创建SD卡

This pops up a window with the message:
"Result of creating AVD 'my_avd':
Error: Failed to create the SD card."

我试图通过命令行重复这个过程,收到类似的错误:

I tried to repeat the process from the command line, receiving a similar error:

alex@alex-desktop:~$ android create avd -n my_avd -t 1 -c 1024M
Android 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Error: Failed to create the SD card.

试图按照使用说明mksdcard同样非生产性;我觉得我缺乏基本的Linux的经验,可以在这里引起了我的问题。当我尝试使用mksdcard,它只是报告说,它无法找到该文件或目录。是mksdcard工具可以使用这种方式在linux?

Attempting to follow instructions for using mksdcard was equally unproductive; I think my basic lack of linux experience may be causing me a problem here. When I try to use mksdcard, it just reports that it cannot find the file or directory. Is the mksdcard tool available for use this way in linux?

alex@alex-desktop:~$ mksdcard 1024M ./sdcard.iso
bash: /home/alex/android-sdk-linux_x86/tools/mksdcard: No such file or directory
alex@alex-desktop:~$ sudo android create avd -n my_avd -t 1 -c 1024M

我添加了Android工具目录到我的PATH变量,但我觉得有很明显别的东西我失踪。也许是某种形式的访问权限?

I've added the android tools directory to my PATH variable, but I feel like there is obviously something else I'm missing. Perhaps some kind of access rights?

试图运行使用sudo android的命令似乎并没有帮助的:

Attempting to run the android command with sudo did not seem to help either:

alex@alex-desktop:~/android-sdk-linux_x86/tools$ sudo ./android create avd -n my_avd -t 1 -c 1024M
Android 2.2 is a basic Android platform.
Do you wish to create a custom hardware profile [no]no
Error: Failed to create the SD card.

我甚至尝试安装Eclipse和ADT插件,并从那里运行经理无济于事。任何提示将是最AP preciated。我是有些新手的Linux用户,所以即使它似乎是一个没有脑子明显的事情,检查高级警告,我仍然可以错过它。

I even tried installing Eclipse and the ADT plugin and running the manager from there to no avail. Any tips would be most appreciated. Advanced warning that I am somewhat of a novice Linux user, so even if it seems like a no-brainer obvious thing to check, I could still have missed it.

谢谢!

推荐答案

所以,我发现这个问题。我使用的是64位的Linux安装,它并没有默认安装的IA32-libs软件包。该mksdcard实用程序将不是没有这个包运行。安装它之后,我是能够建立的AVD不使用AVD管理器的一个问题。

So I found the problem. I was using a 64-bit Linux install, which did not have the ia32-libs package installed by default. The mksdcard utility will not run without this package. After installing it, I was able to build the AVD without a problem using the AVD manager.

这篇关于Ubuntu的 - 错误:无法创建SD卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 18:57