In my situation, the problem was fixed by updating the Android API and Android Emulator in Android Studio.