gpt4 book ai didi

google-maps - 未处理的异常:PlatformException(错误,java.lang.IllegalStateException:试图创建一个已经创建的平台 View , View ID:0

转载 作者:行者123 更新时间:2023-12-03 03:04:37 26 4
gpt4 key购买 nike

我正在尝试从 flutter 的焰火构建Google map ...但是此错误确实使我烦恼...请帮助我...

2020-02-19 05:16:45.027 24331-24360 / com.cookietech.flutter_map E / flutter:[ERROR:flutter / lib / ui / ui_dart_state.cc(157)]未处理的异常:PlatformException(错误,java.lang。 IllegalStateException:尝试创建一个已经创建的平台 View , View ID:0
在io.flutter.plugin.platform.PlatformViewsController $ 1.createPlatformView(PlatformViewsController.java:85)
在io.flutter.embedding.engine.systemchannels.PlatformViewsChannel $ 1.create(PlatformViewsChannel.java:96)
在io.flutter.embedding.engine.systemchannels.PlatformViewsChannel $ 1.onMethodCall(PlatformViewsChannel.java:60)
在io.flutter.plugin.common.MethodChannel $ IncomingMethodCallHandler.onMessage(MethodChannel.java:231)
在io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:93)
在io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:642)
在android.os.MessageQueue.nativePollOnce(本地方法)
在android.os.MessageQueue.next(MessageQueue.java:325)
在android.os.Looper.loop(Looper.java:142)
在android.app.ActivityThread.main(ActivityThread.java:6598)
在java.lang.reflect.Method.invoke(本机方法)
在com.android.internal.os.RuntimeInit $ MethodAndArgsCaller.run(RuntimeInit.java:438)
在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
, 空值)
#0 StandardMethodCodec.decodeEnvelope(软件包:flutter / src / services / message_codecs.dart:569:7)
#1 MethodChannel._invokeMethod(package:flutter / src / services / platform_channel.dart:156:18)

#2 MethodChannel.invokeMethod(package:flutter / src / services / platform_channel.dart:329:12)
#3 AndroidViewController._create(package:flutter / src / services / platform_views.dart:633:54)
#4 AndroidViewController.setSize(package:flutter / src / services / platform_views.dart:550:14)
#5 RenderAndroidView._sizePlatformView(package:flutter / src / rendering / platform_view.dart:175:29)
#6 RenderAndroidView.performResize(package:flutter / src / rendering / platform_view.dart:156:5)
#7 RenderObject.layout(package:flutter / src / rendering / object.dart:1746:9)
#8 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#9 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#10 MultiChildLayoutDelegate.layoutChild(package:flutter / src / rendering / custom_layout.dart:171:11)
#11 _ScaffoldLayout.performLayout(package:flutter / src / material / scaffold.dart:477:7)
#12 MultiChildLayoutDelegate._callPerformLayout(package:flutter / src / rendering / custom_layout.dart:240:7)
#13 RenderCustomMultiChildLayoutBox.performLayout(package:flutter / src / rendering / custom_layout.dart:399:14)
#14 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#15 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#16 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#17 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#18 _RenderCustomClip.performLayout(package:flutter / src / rendering / proxy_box.dart:1247:11)
#19 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#20 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#21 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#22 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#23 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#24 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#25 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#26 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#27 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#28 RenderProxyBoxMixin.performLayout(package:flutter / src / rendering / proxy_box.dart:110:13)
#29 RenderObject.layout(package:flutter / src / rendering / object.dart:1767:7)
#30 RenderProxyBoxMixin.performLayout(package:flu
enter image description here

最佳答案

我想我得到了答案...
如果我错了,请纠正我。
我为解决该问题所做的是...
我写了这些命令到终端...
1. flutter 干净
2. flutter pub缓存修复
然后,我重建应用程序,它可以工作。
我也看到了很多时间,该应用程序的表现似乎与预期不符。所以在那种情况下,我只是从设备上关闭了该应用程序,然后再次重建它,它就可以工作了...
我不知道为什么会这样。
我猜这是一个错误。可能是Google需要解决这些问题或提供有关此事实的清晰文档。

关于google-maps - 未处理的异常:PlatformException(错误,java.lang.IllegalStateException:试图创建一个已经创建的平台 View , View ID:0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60290869/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com