我正在尝试使用Windows 7上运行的Android Studio上的AVD Manager创建新的虚拟设备。
当我单击完成按钮时,我收到一条错误消息。 ch了一下idea.log,我看到了:
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - Invalid argument size '512M'
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection -
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - mksdcard: create a blank FAT32 image to be used with the Android emulator
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - usage: mksdcard [-l label] <size> <file>
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection -
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - if <size> is a simple integer, it specifies a size in bytes
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - if <size> is an integer followed by 'K', it specifies a size in KiB
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - if <size> is an integer followed by 'M', it specifies a size in MiB
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - if <size> is an integer followed by 'G', it specifies a size in GiB
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection -
2019-06-07 17:09:59,558 [ thread 48] WARN - vdmanager.AvdManagerConnection - Minimum size is 9M. The Android emulator cannot use smaller images.
2019-06-07 17:09:59,559 [ thread 48] WARN - vdmanager.AvdManagerConnection - Maximum size is 1099511627264 bytes, 1073741823K, 1048575M or 1023G
2019-06-07 17:09:59,559 [ thread 48] WARN - vdmanager.AvdManagerConnection - Failed to create the SD card.
2019-06-07 17:09:59,559 [ thread 48] WARN - vdmanager.AvdManagerConnection - Failed to create sdcard in the AVD folder.
我尝试了不同的值和单位大小,但没有成功。
还尝试以相同的错误手动运行命令:
mksdcard.exe 512M mysdcard.img
当我使用IDE界面时,我没有太多选择,也无法解决问题。有解决方案吗?