Unsupported virtual sd card in android emulator

本秂侑毒 提交于 2019-12-05 08:04:31

To solve this problem use sd card size >= 512 MB in emulator . Android studio 2.3.3 created 100 MB sd card by default.

The commit on the AOSP source code for Android Oreo states that a 512-megabyte file is created and mounted as a virtual disk for the system to use as an SD card.

I faced the same problem too. Like others have mentioned, AVDs which have SD cards that are less than 512 MB do not detect the card after the upgrade to Android Studio 3. I did the following:

  1. Stop the AVD if its running
  2. Open AVD manager and edit the properties for the AVD. Ensure that the SD card is 512 MB or more
  3. Restart the AVD.

Your emulator should be able to detect the card now.

I set up a new device using API 24 and it the SD card worked perfectly fine. I believe this is because API 26 is new and virtual SD card support is not available yet on emulator.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!