Skip to content

[Android] Migrate Android build to declarative Gradle plugin and add pluginVersion #166

@gonzalogauto

Description

@gonzalogauto

When trying to build my app with Flutter 3.32.0 I see the following error message:

A problem occurred configuring project ':adjust_sdk'.
> Parameter specified as non-null is null: method com.flutter.gradle.VersionUtils.mostRecentSemanticVersion, parameter version1

This is because the package is using the old "imperative apply of Flutter's Gradle plugins" and needs to migrate to declarative Gradle plugin format. Plus the plugin version variable is not set so the flutter tool can't read it.

For more info see this article

Flutter SDK version

Flutter 3.32.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision be698c48a6 (8 days ago) • 2025-05-19 12:59:14 -0700
Engine • revision 1881800949 (8 days ago) • 2025-05-19 10:54:07 -0700
Tools • Dart 3.8.0 • DevTools 2.45.1

Flutter Doctor

[✓] Flutter (Channel stable, 3.32.0, on macOS 15.4.1 24E263 darwin-arm64, locale en-AR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] VS Code (version 1.100.0)
[✓] Connected device (5 available)
[✓] Network resources

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