I found a solution that solved this issue:-
1-Disable Hyper-V and all subitems in "Turn on or Off windows features " in control panel. 2-Restart windows. 3-Delete all files in "C:\Users\your device user name.android\avd" 4-Create new emulator in android studio 5-Then run app and will work