在Firebase上学习Flutter课程时,我尝试重新加载模拟器。尽管该应用程序运行良好,但在调试控制台中却收到一些错误日志:
/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
从未遇到过此类错误,我想了解为什么会发生这种情况以及如何解决它们。
答案 0 :(得分:5)
停止应用和清理对我有帮助。尝试停止应用程序并在终端中运行:
flutter clean
答案 1 :(得分:3)
我通过在终端/命令行中将Flutter版本降级为稳定版本来解决此问题:
flutter channel stable
我仍然不知道是什么问题。
答案 2 :(得分:0)
我最终通过修复 pub 缓存解决了这个问题。
flutter pub 缓存修复