Flutter开发之——IOS通信MethodChannel

发布时间 2023-08-06 18:35:10作者: 丷dante丶灬

 

https://blog.csdn.net/Calvin_zhou/article/details/119042778

 

开始我新建的纯flutter项目,在研究flutter与原生交互时,按照上面代码操作后,报错

Unhandled Exception: MissingPluginException(No implementation found for method sendData on channel com.example.flutterios.MethodChannel)

确定两端方法名一致后

打开iOS工程

 需要点击左上角的 运行按钮,xcode才能找到Flutter模块。

然后用Android Studio 运行flutter项目,就可以与原生交互了。