Flutter Handling Debug Console Errors 'Method not found'

Viewed 7643

While following a Flutter course on Firebase, I tried to reload my emulator. Although the app works fine, I received some error log in the debug console:

/EGL_emulation(20277): eglMakeCurrent: 0xe97df060: ver 3 0 (tinfo 0xe4bddba0)
D/eglCodecCommon(20277): setVertexArrayObject: set vao to 0 (0) 1 0
Restarted application in 5 876ms.
Error -32601 received from application: Method not found // HERE
Error -32601 received from application: Method not found // HERE, and
Error -32601 received from application: Method not found // HERE
Error handling 'checkPlatformOverride' custom request: method not available: ext.flutter.platformOverride
Error handling 'serviceExtension' custom request: method not available: ext.flutter.inspector.setPubRootDirectories
Error handling 'checkIsWidgetCreationTracked' custom request: method not available: ext.flutter.inspector.isWidgetCreationTracked

Having never encountered such errors, I would like to understand why this happened and how to fix them.

3 Answers

Stoping the app and cleaning helped me. Try to stop app and run in the terminal:

flutter clean

I solved this by downgrading Flutter version to a stable one by doing this in Terminal/Command Line:

flutter channel stable

I still do not know what was the problem though.

I ended up solving this by repairing the pub cache.

flutter pub cache repair

Related