Arch上的Android虚拟设备(AVD)创建问题

时间:2017-11-01 16:58:22

标签: android avd

我正在尝试在Arch机器中创建AVD。我正在使用Android Studio。虽然我将创建AVD,但它显示"创建AVD时发生错误。有关详细信息,请参阅idea.log"。我无法在日志文件中找到任何内容。

创建AVD时在日志文件中生成的最后几行:

2017-11-01 21:16:31,412 [3170173]   INFO - s.RepoProgressIndicatorAdapter - Downloading https://dl.google.com/android/repository/glass/addon2-1.xml 
2017-11-01 21:16:31,645 [3170406]   INFO - s.RepoProgressIndicatorAdapter - Downloading https://dl.google.com/android/repository/extras/intel/addon2-1.xml 
2017-11-01 21:16:31,872 [3170633]   INFO - s.RepoProgressIndicatorAdapter - Downloading file:/home/aswin/Desktop/android-studio/plugins/sdk-updates/offline-repo/offline-repo.xml 
2017-11-01 21:18:12,693 [3271454]   WARN - vdmanager.AvdManagerConnection - Failed to create the SD card. 
2017-11-01 21:18:12,828 [3271589]   WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder. 
2017-11-01 21:19:19,823 [3338584]   WARN - vdmanager.AvdManagerConnection - Failed to create the SD card. 
2017-11-01 21:19:19,851 [3338612]   WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder. 
2017-11-01 21:20:42,227 [3420988]   WARN - vdmanager.AvdManagerConnection - Failed to create the SD card. 
2017-11-01 21:20:42,273 [3421034]   WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder. 
2017-11-01 21:23:46,799 [3605560]   WARN - vdmanager.AvdManagerConnection - Failed to create the SD card. 
2017-11-01 21:23:46,819 [3605580]   WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder. 
2017-11-01 22:12:36,546 [6535307]   WARN - vdmanager.AvdManagerConnection - Failed to create the SD card. 
2017-11-01 22:12:36,647 [6535408]   WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder. 

1 个答案:

答案 0 :(得分:0)

如果您使用的是64位计算机,则需要专门安装某些32位C库,以便AVD能够创建虚拟设备。

您需要从Arch核心存储库安装 lib32-gcc-libs 库,如下所示:

sudo pacman -S lib32-gcc-libs

在安装此软件包之后尝试创建虚拟设备应该可以。