amap_fluttify报错第一弹

I/flutter (20334): onLocationChanged::kNativeObjectPool: {com_amap_api_location_AMapLocation{refId: 180934956}, com_amap_api_location_AMapLocation{refId: 230166517}, com_amap_api_location_AMapLocation{refId: 235640783}, com_amap_api_location_AMapLocation{refId: 122616648}, com_amap_api_location_AMapLocation{refId: 249634273}, com_amap_api_location_AMapLocation{refId: 167409414}, com_amap_api_location_AMapLocation{refId: 76329415}, com_amap_api_location_AMapLocation{refId: 83657716}, com_amap_api_location_AMapLocation{refId: 40941341}, com_amap_api_location_AMapLocation{refId: 255262098}}
E/flutter (20334): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: NoSuchMethodError: The method 'add' was called on null.
E/flutter (20334): Receiver: null
E/flutter (20334): Tried calling: add(Instance of 'Location')
E/flutter (20334): #0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
E/flutter (20334): #1      AmapLocation.listenLocation. (package:amap_location_fluttify/src/dart/amap_location.dart:170:29)
E/flutter (20334): #2      _AndroidLocationDelegate.onLocationChanged (package:amap_location_fluttify/src/dart/amap_location.dart:319:7)
E/flutter (20334): #3      com_amap_api_location_AMapLocationClient.setLocationListener. (package:amap_location_fluttify/src/android/com/amap/api/location/AMapLocationClient.g.dart:93:21)
E/flutter (20334): #4      MethodChannel._handleAsMethodCall (package:flutter/src/services/platform_channel.dart:402:55)        
E/flutter (20334): #5      MethodChannel.setMethodCallHandler. (package:flutter/src/services/platform_channel.dart:370:54)
E/flutter (20334): #6      _DefaultBinaryMessenger.handlePlatformMessage (package:flutter/src/services/binding.dart:200:33)     
E/flutter (20334): #7      _invoke3. (dart:ui/hooks.dart:303:15)
E/flutter (20334): #8      _rootRun (dart:async/zone.dart:1126:13)
E/flutter (20334): #9      _CustomZone.run (dart:async/zone.dart:1023:19)
E/flutter (20334): #10     _CustomZone.runGuarded (dart:async/zone.dart:925:7)
E/flutter (20334): #11     _invoke3 (dart:ui/hooks.dart:302:10)
E/flutter (20334): #12     _dispatchPlatformMessage (dart:ui/hooks.dart:162:5)
E/flutter (20334):

你可能感兴趣的:(amap_fluttify报错第一弹)