You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Android Gradle scripts for pkgs/jni and pkgs/jni_flutter currently use Groovy space-assignment / generated setter syntax in several places, for example:
pkgs/jni/android/build.gradle:
group 'com.github.dart_lang.jni'
version '1.0'
namespace 'com.github.dart_lang.jni'
compileSdk 35
ndkVersion flutter.ndkVersion
minSdk 21
pkgs/jni_flutter/android/build.gradle:
group 'com.github.dart_lang.jni_flutter'
version '1.0'
namespace 'com.github.dart_lang.jni_flutter'
compileSdk 35
minSdk 21
With recent Gradle versions, these forms emit deprecation warnings. Gradle's upgrade guide states that generated property setter methods for Groovy space-assignment syntax are deprecated and will be removed in Gradle 10, and recommends explicit assignment such as propertyName = value.
A minimal remediation should be limited to Android Gradle files and should not alter Dart, Java, Kotlin, native runtime, public API, or package dependency semantics.
Activity
liamappelbe commentedon May 6, 2026
We need to check if this is an issue for JNIgen's generated gradle stubs too: pkgs/jnigen/lib/src/tools/android_sdk_tools.dart,
_gradleGetClasspathStuband_gradleGetSourcesStubAlso affects a bunch of examples: