android - Flutter 致命异常 : java. lang.RuntimeException : Failure delivering result ResultInfo{who=null, request=1, result=0, data=Intent

标签 android flutter dart

我该如何解决这个问题?

Fatal Exception: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=0, data=Intent { (has extras) }} to activity {packagedName/packagedName.MainActivity}: java.lang.IllegalStateException: Reply already submitted

packagedName是我的项目包名

click here to view full error

最佳答案

我猜你正在为原生平台开发自己的插件。
问题是您不能使用相同的 MethodChannel.Result 对象多次调用“result.success()”或“result.error()”。

关于android - Flutter 致命异常 : java. lang.RuntimeException : Failure delivering result ResultInfo{who=null, request=1, result=0, data=Intent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63335456/

相关文章:

flutter - 依赖项如何影响应用程序的整体大小?

android - 使用PhoneGap在手机平台上迁移我的电子商务网站

android - 用不同颜色绘制 FILL_AND_STROKE 表格

flutter - 如何基于Flutter中的X和Y值在ListView或大型Continter中创建动态容器或平面按钮

firebase - 有没有办法使用 "emailVerified"auth REST API'' 从我的 firebase auth 用户获取 ''?

DART:如何编写返回 Future 的耗时函数

dart - 是否可以从 Dart 定义有效的 JavaScript 函数?

android - 底部应用栏不显示菜单项

android - 共享公钥的问题

flutter - Flutter应用程序无法渲染,出现错误 “Bottom overflowed by infinite pixels”