user7540184
user7540184

Reputation:

Unsupported virtual sd card in android emulator

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)

Screenshot 1 Screenshot 2

Upvotes: 6

Views: 3933

Answers (3)

Nkole Evans
Nkole Evans

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:

  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.

Upvotes: 2

AC1D
AC1D

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

user7540184
user7540184

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

Related Questions