Unsupported virtual sd card in android emulator

五迷三道 提交于 2019-12-22 05:24:17

问题


I don't know why the virtual SD card isn't working anymore. Someone got any leads or why could that happen?

I'm using Android emulator with API 26 (Android O)


回答1:


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.




回答2:


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.




回答3:


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.



来源:https://stackoverflow.com/questions/45788160/unsupported-virtual-sd-card-in-android-emulator

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