'Android Emulator wifi always turned off

Trying to connect to internet with android emulator API32 SV2, but no internet at all. each time turn on wifi and navigate to another window wifi is turned off. Tried the following:

1- check / uncheck proxy http as below.

proxy http

2- add DNS 8.8.8.8 and 8.8.4.4 to local network but not use.

3-Cold boot.

4-adding static IP with DNS config on emulator android apn as below:

enter image description here

Notes:

1-Operating system is Windows.

2-All old android versionsfrom API30 and below are working fine. the problem is only in 31 and above.

Your suggestions.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source