Reputation:
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)
Upvotes: 6
Views: 3933
Reputation: 359
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:
Your emulator should be able to detect the card now.
Upvotes: 2
Reputation: 370
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.
Upvotes: 2
Reputation:
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.
Upvotes: 0