Skip to content

[Compile]: Could not get unknown property 'flutter' for extension 'android' of type com.android.build.gradle.LibraryExtension #3742

@aNOOBisTheGod

Description

@aNOOBisTheGod

Operating System

macOS Sequoia 15.6.1

Plugin

share_plus

Version

12.0.1

Flutter SDK

3.24.5

Compilation command

flutter run

Dart Dependencies

Native dependencies


Compilation Error

* What went wrong:
A problem occurred evaluating project ':share_plus'.
> Could not get unknown property 'flutter' for extension 'android' of type com.android.build.gradle.LibraryExtension.

Flutter Doctor

[✓] Flutter (Channel stable, 3.24.5, on macOS 15.6.1 24G90 darwin-arm64, locale
    en-RU)
    • Flutter version 3.24.5 on channel stable at
      /Users/vasya/fvm/versions/3.24.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision dec2ee5c1f (1 year, 2 months ago), 2024-11-13 11:13:06
      -0800
    • Engine revision a18df97ca5
    • Dart version 3.5.4
    • DevTools version 2.37.3

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/vasya/Library/Android/sdk
    • Platform android-36, build-tools 35.0.0
    • Java binary at:
      /Users/vasya/Library/Java/JavaVirtualMachines/jbr-17.0.12/Contents/Home/bi
      n/java
    • Java version OpenJDK Runtime Environment JBR-17.0.12+1-1207.37-nomod
      (build 17.0.12+1-b1207.37)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor
      --android-licenses

[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 17C52
    • CocoaPods version 1.16.2

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

[✓] Android Studio (version 2024.3)
    • 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)

[✓] IntelliJ IDEA Community Edition (version 2024.2.3)
    • IntelliJ at /Applications/IntelliJ IDEA CE.app
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin version 242.22855.32

[✓] VS Code (version 1.107.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.126.0

[✓] Connected device (5 available)
    • sdk gphone64 arm64 (mobile)     • emulator-5554                        •
      android-arm64  • Android 12 (API 32) (emulator)
    • iPhone 17 Pro (mobile)          • F71C00F5-BB46-4B03-AA7C-E48C9CA43FCA •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-26-1 (simulator)
    • macOS (desktop)                 • macos                                •
      darwin-arm64   • macOS 15.6.1 24G90 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                •
      darwin         • macOS 15.6.1 24G90 darwin-arm64
    • Chrome (web)                    • chrome                               •
      web-javascript • Google Chrome 144.0.7559.59
    ! Error: Browsing on the local area network for Saul Goodman. Ensure the
      device is unlocked and attached with a cable or associated with the same
      local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code
      -27)

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

! Doctor found issues in 1 category.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions