How to resolve setWindowSurfaceColorBuffer and flushwindowsurfacecolorbuffer error in Android

I faced a strange issue today when developing an android app. emulator: setWindowSurfaceColorBuffer: bad window surface handle 0x5 emulator: fb::flushwindowsurfacecolorbuffer: window handle 0x9 not found These errors started appearing in Event Log window and app build started failing. After long hours of searching the Internet for it, Wiping data from the simulator seem to be…