flutter遇到这个问题的解决方法:
1.切换到stable最新分支
2.在runApp之前,最好是在man函数第一行加上:
WidgetsFlutterBinding.ensureInitialized();
We would need additional information to re-open this. How does the error reproduce? Can somebody post a minimal code example that shows the error?
Also, did you update your app as explained in https://groups.google.com/forum/#!topic/flutter-announce/sHAL2fBtJ1Y: If you use message channels before calling runApp you need to initialize the bindings manually by calling WidgetsFlutterBinding.ensureInitialized()
.