Skip to content

[Compile]: share_plus: ^10.1.4 not compiling after upgrading to flutter 3.29.0 #3492

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

Open
8 tasks done
gopalatpice opened this issue Feb 24, 2025 · 2 comments
Open
8 tasks done
Labels
compile Compilation error triage

Comments

@gopalatpice
Copy link

Operating System

MacOS 15.1.1 (24B91)

Plugin

share_plus

Version

share_plus: ^10.1.4

Flutter SDK

3.29.0

Compilation command

flutter run

Dart Dependencies

Native dependencies


Compilation Error

android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:199: error: cannot find symbol
      flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.share.SharePlusPlugin());
                                                                        ^
  symbol:   class SharePlusPlugin
  location: package dev.fluttercommunity.plus.share

Flutter Doctor

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.1.1 24B91 darwin-arm64, locale en-IN) [250ms]
    • Flutter version 3.29.0 on channel stable at /Users/gopal/Desktop/work/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (13 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.1) [288ms]
    • Android SDK at /Users/gopal/Library/Android/sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/to/macos-android-setup for more details.

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

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

[✓] Android Studio (version 2024.2) [8ms]
    • 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.4+-12422083-b607.1)

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

[✓] Connected device (5 available) [5.7s]
    • sdk gphone64 arm64 (mobile)        • emulator-5554             • android-arm64  • Android 15 (API 35) (emulator)
 • 00008110-001435D80AF3801E • ios            • iOS 18.3 22D63
    • macOS (desktop)                    • macos                     • darwin-arm64   • macOS 15.1.1 24B91 darwin-arm64
    • Mac Designed for iPad (desktop)    • mac-designed-for-ipad     • darwin         • macOS 15.1.1 24B91 darwin-arm64
    • Chrome (web)                       • chrome                    • web-javascript • Google Chrome 133.0.6943.127

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

Checklist before submitting a bug

  • I searched issues in this repository and couldn't find such bug/problem
  • I Google'd a solution and I couldn't find it
  • I searched on StackOverflow for a solution and I couldn't find it
  • I read the README.md file of the plugin
  • I'm using the latest version of the plugin
  • All dependencies are up to date with flutter pub upgrade
  • I did a flutter clean
  • I tried running the example project
@gopalatpice gopalatpice added compile Compilation error triage labels Feb 24, 2025
@GHOFRANEbarnat13

This comment has been minimized.

@miquelbeltran
Copy link
Member

This is a common compilation issue in Flutter, take a look at Stackoverflow for similar build errors: https://stackoverflow.com/questions/66305553/error-cannot-find-symbol-when-building-for-android-in-flutter

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

No branches or pull requests

3 participants