It happens to appear with Android phones when the app has no authorization for recording. Please authorize the recording for the app from settings. In some circumstance, the tool category app will kill the recording authorization from other apps.
P.s. Android emulator does not support recording function, so it can’t work. Please use an android phone instead.