Очень простое приложение, которое не имеет ничего, кроме экрана Google Map, копирует из Codelabs следующее:
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('Maps Sample App'),
backgroundColor: Colors.green[700],
),
body: GoogleMap(
onMapCreated: _onMapCreated,
initialCameraPosition: CameraPosition(
target: _center,
zoom: 11.0,
),
),
),
);
}
При запуске приложения происходит сбой, и я получаю следующий стек:
==============================================
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23c7127e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff513fbb20 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23c710bc +[NSException raise:format:] + 188
3 Runner 0x00000001050730e3 +[GMSServices checkServicePreconditions] + 182
4 Runner 0x000000010506ff22 +[GMSServices sharedServicesSync] + 110
5 Runner 0x000000010505f979 -[GMSMapView sharedInitWithServices:camera:forPlaces:] + 156
6 Runner 0x000000010505ede1 -[GMSMapView initWithFrame:camera:] + 123
7 Runner 0x000000010505ec05 +[GMSMapView mapWithFrame:camera:] + 104
8 Runner <…>
Lost connection to device.
==================================================
Используемый плагин: google_maps_flutter: ^ 0.5.11
Что здесь происходит?