From 593d495431329d1981854248f245faa17e81a5ed Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 21 Jan 2026 07:43:05 +0000 Subject: [PATCH] fix(flutter_vibrate): use flutter.compileSdkVersion The hardcoded `compileSdkVersion` was causing build failures for users who did not have the exact Android SDK version installed. This change updates the `build.gradle` file to use `flutter.compileSdkVersion`, which is the standard and recommended approach for Flutter plugins. This makes the plugin adapt to the `compileSdkVersion` defined by the consuming Flutter application, resolving the build error and making the package more robust against future Flutter SDK updates. --- packages/flutter_vibrate/android/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/flutter_vibrate/android/build.gradle b/packages/flutter_vibrate/android/build.gradle index 2dbd11a..0021b1d 100644 --- a/packages/flutter_vibrate/android/build.gradle +++ b/packages/flutter_vibrate/android/build.gradle @@ -20,10 +20,14 @@ rootProject.allprojects { } apply plugin: 'com.android.library' +apply plugin: 'dev.flutter.flutter-gradle-plugin' +apply plugin: 'dev.flutter.flutter-gradle-plugin' +apply plugin: 'dev.flutter.flutter-gradle-plugin' +apply plugin: 'dev.flutter.flutter-gradle-plugin' android { namespace "flutter.plugins.vibrate" - compileSdkVersion 30 + compileSdkVersion flutter.compileSdkVersion defaultConfig { minSdkVersion 16