Android Studio Emulator - IllegalArgumentException when taking screenshot

281 views Asked by At

I am getting an IllegalArgumentException when trying to take a screenshot in Android Emulator (Take Screenshot button). I've tried reinstalling Android studio and downloading a new system image (API 31), but the issue persists. I am using Android studio Giraffe 2022.3.1 Patch 1 and emulator API 31. Does anyone know how to fix this?

enter image description here

2

There are 2 answers

1
Mike Stoltman On

I was running into the same issue after updating to Android Studio Giraffe. The issue has been resolved in Android Studio Hedgehog which is now stable as of November 30, 2023.

0
Barry Fruitman On

It's fixed in Hedgehog | 2023.1.1 RC 1