I had this error and solved it by going to Device Manager > Edit this AVD (pencil icon) > Show Advanced Settings > Emulated Performance > Boot Options : select "Cold Boot"
Then I restarted Android Studio and did not get the error again.