Saturday, January 14, 2023

[Solved] The stock Camera app in Android Emulator could not take any photo - error msg: Insert an SD card before using the camera. What's wrong with the AVD?

I created an AVD (Android Virtual Device) based on API Level 28 (Android 9.0). But when I tried to take a photo, the stock Camera app said "Insert an SD card before using the camera". Check the screentshot as below. So, I failed to take any photo at all.



But in fact, in the AVD Advanced Settings, already there is a 'Studio-managed SD card' set up for this AVD.


The Android Emulator I used -


The System Image I used for this AVD -



Now I wonder,

Q1: Why couldn't the built-in camera app of this AVD take any picture? Why is an SD card necessary for taking a photo? Why couldn't the Studio-managed SD card be recognized?

Q2: Do you all also have this issue in the AVD created on your PC?

Q3: Should this be because there is a bug in this API Level 28 System Image, or is the version of Android Emulator defective?


Any ideas? Thank you all for your attention. Have a good weekend.



Updated on Jan 16, 2023. -----------------------------------------------------------------

After Google search, research, and several comparison experiments, I found out that this problem is because this 64-bit System Image is likely to have a bug about camera feature. Use the x86 System Image for your Android 9.0 AVD instead even if your Windows host is 64-bit.

Share it for your reference.