Skip to content

Fix Android compatibility issue after Flutter 3.29.0 upgrade #873

@ezraaaa

Description

@ezraaaa

After adding mapbox_maps_flutter dependency, app could not be launched.

Steps to reproduce

  1. Create a new project with Flutter version 3.29.0
  2. Add mapbox_maps_flutter as dependency
  3. flutter run

Expected results

App should be able to install and launch successfully

Actual results

App crashes the moment it opens

Screenshots or video

Details

Logs

Logs
Launching lib/main.dart on sdk gphone16k arm64 in debug mode...
Running Gradle task 'assembleDebug'...                           1,611ms
✓ Built build/app/outputs/flutter-apk/app-debug.apk
Installing build/app/outputs/flutter-apk/app-debug.apk...          603ms

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.29.0, on macOS 15.3 24D60 darwin-arm64, locale en-MY) [2.4s]
    • Flutter version 3.29.0 on channel stable at /Users/ezragunn/Development/SDKs/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (11 days ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0-rc4) [2.0s]
    • Android SDK at /Users/ezragunn/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0-rc4
    • Java binary at: /Users/ezragunn/Library/Java/JavaVirtualMachines/openjdk-22.0.2/Contents/Home/bin/java
      This JDK is specified by the JAVA_HOME environment variable.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 22.0.2+9-70)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [1,782ms]
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google
    Chrome) [9ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✓] Android Studio (version 2024.1) [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 17.0.11+0-17.0.11b1207.24-11852314)

[✓] VS Code (version 1.97.2) [7ms]
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.104.0

[✓] Connected device (2 available) [5.8s]
    • macOS (desktop)                   • macos                     • darwin-arm64 • macOS 15.3 24D60 darwin-arm64
    • Mac Designed for iPad (desktop)   • mac-designed-for-ipad     • darwin       • macOS 15.3 24D60 darwin-arm64

[✓] Network resources [339ms]
    • All expected network resources are available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions