Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作者你好,最新版本地图无法显示 #1

Open
bladeofgod opened this issue Jul 10, 2020 · 0 comments
Open

作者你好,最新版本地图无法显示 #1

bladeofgod opened this issue Jul 10, 2020 · 0 comments

Comments

@bladeofgod
Copy link

错误日志如下:
E/JVMContainer VMSG(30578): RegisterNatives
E/BitmapFactory(30578): Unable to decode stream: java.lang.NullPointerException
E/MethodChannel#flutter/platform_views(30578): Failed to handle method call
E/MethodChannel#flutter/platform_views(30578): java.lang.NullPointerException: Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference
E/MethodChannel#flutter/platform_views(30578): at com.baidu.mapapi.map.TextureMapView.a(Unknown Source:33)
E/MethodChannel#flutter/platform_views(30578): at com.baidu.mapapi.map.TextureMapView.a(Unknown Source:28)
E/MethodChannel#flutter/platform_views(30578): at com.baidu.mapapi.map.TextureMapView.(Unknown Source:19)
E/MethodChannel#flutter/platform_views(30578): at com.fluttify.bmap_map_fluttify.TextureMapViewFactory.create(TextureMapViewFactory.java:949)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:179)
E/MethodChannel#flutter/platform_views(30578): at android.app.Dialog.dispatchOnCreate(Dialog.java:407)
E/MethodChannel#flutter/platform_views(30578): at android.app.Dialog.show(Dialog.java:302)
E/MethodChannel#flutter/platform_views(30578): at android.app.Presentation.show(Presentation.java:249)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.plugin.platform.VirtualDisplayController.(VirtualDisplayController.java:94)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:47)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:112)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:95)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:59)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:226)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
E/MethodChannel#flutter/platform_views(30578): at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:631)
E/MethodChannel#flutter/platform_views(30578): at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#flutter/platform_views(30578): at android.os.MessageQueue.next(MessageQueue.java:326)
E/MethodChannel#flutter/platform_views(30578): at android.os.Looper.loop(Looper.java:165)
E/MethodChannel#flutter/platform_views(30578): at android.app.ActivityThread.main(ActivityThread.java:6864)
E/MethodChannel#flutter/platform_views(30578): at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#flutter/platform_views(30578): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
E/MethodChannel#flutter/platform_views(30578): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
E/flutter (30578): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Attempt to invoke virtual method 'int android.graphics.Bitmap.getWidth()' on a null object reference, null)
E/flutter (30578): #0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569)
E/flutter (30578): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156)
E/flutter (30578):
E/flutter (30578): #2 AndroidViewController._create (package:flutter/src/services/platform_views.dart:633)
E/flutter (30578):
E/flutter (30578): #3 RenderAndroidView._sizePlatformView (package:flutter/src/rendering/platform_view.dart:175)
E/flutter (30578):
E/flutter (30578):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant