当前位置:网站首页>Unhandled Exception: MissingPluginException(No implementation found for method launch on channel)

Unhandled Exception: MissingPluginException(No implementation found for method launch on channel)

2022-07-01 01:10:00 weixin_ thirty-eight million one hundred and seven thousand fou

One 、 explain

stay  Flutter  The development process , A missing plug-in error is suddenly reported , It's strange , How could such a mistake be reported suddenly ? Then quickly read the error log and check your own code , After a meal of operation, sigh that there is no problem with your code ! It was fine before , How could it be  ? The 100000 question marks are omitted here ......

 

3、 ... and 、 Cause analysis
Most of our problems are in the following scenarios :

After running the project , A third-party library needs to be imported when a function is encountered during development , After successful import , We have also written the corresponding code in the project , Then we press the shortcut key with confidence :“cmd + s” To carry out “hot reload”, This is the time IDE Still no error is reported , When we run to the code we specify ,Oh my god !   Full screen “ The flowers of Shandan are blooming red ” ! by !

Actually Flutter Of “hot reload” Although technology has provided great convenience for our development , But it's not everything . Our newly added plug-in package cannot be directly entered into the mobile application package through hot reload , Some people will try to directly click the green triangle to the right to install , In this way, it is impossible to recompile, package and install to the mobile phone , At this time, you must stop using ( Red small square button ), Click Install again .
 

原网站

版权声明
本文为[weixin_ thirty-eight million one hundred and seven thousand fou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202160358530133.html