Example is not runnable on android

Open
#540 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@akhil-ge0rge is already working on this.

Since Nov 18, 2025.

  • #542 by @akhil-ge0rge — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
18/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
android, dart, flutter

Research direction

The failure comes from the Android Gradle setup in the example app, so start with example/android/settings.gradle and example/android/app/build.gradle, which still apply the loader imperatively. Before editing, read pull request #542, which is already open against this issue, to avoid duplicating it. Done means the example builds and runs on an Android device with flutter run, using the declarative plugins block the error message recommends.

Written by the indexing model from the issue text.

Description

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

Dominant language
Dart
Stars
2.9k
Forks
646
Avg merge
5m
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from letsar/flutter_slidable

All issues in letsar/flutter_slidable

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.