🌐 AI搜索 & 代理 主页
Skip to content

Unable to establish connection on channel: "dev.flutter.pigeon.google_maps_flutter_android.MapsApi.updatePolygons.0" #169343

@xonaman

Description

@xonaman

What package does this bug report belong to?

google_maps_flutter

What target platforms are you seeing this bug on?

Android

Have you already upgraded your packages?

Yes

Dependency versions

https://pastebin.com/aT5ML7yg

Steps to reproduce

I’m using PlatformMap from platform_maps_flutter, which uses google_maps_flutter_android internally on Android devices.

On most devices, everything works as expected, but on some devices, I get the following crashlytics report:

PlatformException(channel-error, Unable to establish connection on channel: "dev.flutter.pigeon.google_maps_flutter_android.MapsApi.updatePolygons.0"., null, null)

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

pid: 4120, tid: 509907295528, name 1.ui

os: android arch: arm64 comp: yes sim: no

build_id: 'cde83d0629db7c3eccbd75ad71c46541'

isolate_dso_base: 723a6f5000, vm_dso_base: 723a6f5000

isolate_instructions: 723a9fba40, vm_instructions: 723a9e5000

#0      MapsApi.updatePolygons (/Users/robertmainzer/.pub-cache/hosted/pub.dev/google_maps_flutter_android-2.16.0/lib/src/messages.g.dart:2057:7)

<asynchronous suspension>

Expected results

Actual results

Code sample

Code sample
                 PlatformMap(
                  compassEnabled: false,
                  rotateGesturesEnabled: false,
                  scrollGesturesEnabled: false,
                  zoomControlsEnabled: false,
                  zoomGesturesEnabled: false,
                  tiltGesturesEnabled: false,
                  initialCameraPosition: CameraPosition(
                    target: LatLng(
                      _vendor!.locationLat!, // use some placeholder value here
                      _vendor!.locationLng!, // use some placeholder value here
                    ),
                    zoom: 15,
                  ),
                  markers: <Marker>{
                    Marker(
                      markerId: MarkerId('marker'),
                      position: LatLng(
                        _vendor!.locationLat!, // use some placeholder value here
                        _vendor!.locationLng!, // use some placeholder value here
                      ),
                    ),
                  },
                )

Screenshots or Videos

No response

Logs

No response

Flutter Doctor output

Doctor output
~/Workspace/remonon_app git:[staging]
flutter doctor -v
[✓] Flutter (Channel stable, 3.32.0, on macOS 15.4.1 24E263 darwin-arm64, locale en-US) [453ms]
    • Flutter version 3.32.0 on channel stable at /opt/homebrew/Caskroom/flutter/3.24.3/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision be698c48a6 (4 days ago), 2025-05-19 12:59:14 -0700
    • Engine revision 1881800949
    • Dart version 3.8.0
    • DevTools version 2.45.1

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,426ms]
    • Android SDK at /Users/robertmainzer/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.3) [883ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16E140
    • CocoaPods version 1.16.2

[✓] Chrome - develop for the web [10ms]
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.3) [9ms]
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 21.0.6+-13368085-b895.109)

[✓] VS Code (version 1.100.0) [7ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (4 available) [9.5s]
    • Robert’s iPhone (wireless) (mobile) • 00008101-001544D2363A001E            • ios            • iOS 18.5 22F76
    • iPhone 16 Plus (mobile)             • 8FE6FFDA-4FDE-494F-B54D-238FDDBAB1FB • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-0 (simulator)
    • macOS (desktop)                     • macos                                • darwin-arm64   • macOS 15.4.1 24E263 darwin-arm64
    • Chrome (web)                        • chrome                               • web-javascript • Google Chrome 134.0.6998.166

[✓] Network resources [1,517ms]
    • All expected network resources are available.

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: crashStack traces logged to the consolep: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions