Skip to content

NO build example hms-flutter-plugin , on last version flutter #422 #423

@Taverz

Description

@Taverz

Description
https://pub.dev/packages/huawei_push
/hms-flutter-plugin/
a2f9b90
commit current a2f9b90
branch - master
download commit from run example

Expected behavior
download commit from run example, example successefull build.

Current behavior
after flutter run
Harmony Tablet
download commit from run example, example NO successefull build.

Logs
BUILD Exception:

  • Where:
    Script '/Users/Documents/dev/flutter/packages/flutter_tools/gradle/app_plugin_loader.gradle' line: 9

  • What went wrong:
    A problem occurred evaluating script.

You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is not possible anymore. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/to/flutter-gradle-plugin-apply
2

Environment

Device from test:
Huawei Tablet , HarmonyOS (3.1.0.182)
and
Samsung S22 Ultra

MacOS M2
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.32.5, on macOS 15.5 24F74 darwin-arm64, locale ru-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.101.2)
[✓] Connected device (3 available)
[✓] Network resources

java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment Homebrew (build 17.0.7+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.7+0, mixed mode, sharing)

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