[GH-ISSUE #7436] [Bug] Deprecated imperative apply of Flutter's Gradle plugins #3313

Closed
opened 2026-03-23 21:29:13 +00:00 by mirror · 2 comments
Owner

Originally created by @Mastermind-sap on GitHub (Mar 1, 2025).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7436

Bug Description

* 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

Flutter version:

Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 35c388afb5 (3 weeks ago) • 2025-02-10 12:48:41 -0800
Engine • revision f73bfc4522
Tools • Dart 3.7.0 • DevTools 2.42.2

Due to this error it doesnot support stable version of flutter.

How to Reproduce

Use flutter stable channel version and build the flutter app.

  1. flutter channel stable
  2. flutter upgrade
  3. flutter run

Expected Behavior

It should build without gradle errors.

Operating System

macOS Sequoia 15.3.1

AppFlowy Version(s)

Building the main branch of the repo.

Screenshots

Image

Additional Context

Needs gradle to be migrated to Plugin DSL syntax.

Originally created by @Mastermind-sap on GitHub (Mar 1, 2025). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/7436 ### Bug Description ``` * 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 ``` Flutter version: ``` Flutter 3.29.0 • channel stable • https://github.com/flutter/flutter.git Framework • revision 35c388afb5 (3 weeks ago) • 2025-02-10 12:48:41 -0800 Engine • revision f73bfc4522 Tools • Dart 3.7.0 • DevTools 2.42.2 ``` Due to this error it doesnot support stable version of flutter. ### How to Reproduce Use flutter stable channel version and build the flutter app. 1. flutter channel stable 2. flutter upgrade 3. flutter run ### Expected Behavior It should build without gradle errors. ### Operating System macOS Sequoia 15.3.1 ### AppFlowy Version(s) Building the main branch of the repo. ### Screenshots <img width="1052" alt="Image" src="https://github.com/user-attachments/assets/e0b65ce3-d848-477a-bdcc-ddf869d9b372" /> ### Additional Context Needs gradle to be migrated to Plugin DSL syntax.
Author
Owner

@asjqkkkk commented on GitHub (Mar 3, 2025):

HI @Mastermind-sap , we are now using stable-3.27.4 to build with flutter, and we've not tested it on a higher version yet, you can try to use 3.27.4 to build appflowy

<!-- gh-comment-id:2693106091 --> @asjqkkkk commented on GitHub (Mar 3, 2025): HI @Mastermind-sap , we are now using `stable-3.27.4` to build with flutter, and we've not tested it on a higher version yet, you can try to use `3.27.4` to build appflowy
Author
Owner

@Mastermind-sap commented on GitHub (Mar 3, 2025):

Ok, I will give it a try. @asjqkkkk

<!-- gh-comment-id:2695466415 --> @Mastermind-sap commented on GitHub (Mar 3, 2025): Ok, I will give it a try. @asjqkkkk
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#3313
No description provided.