From 45d0188e93507c79643ca5cc2e9cf95c88c2cf1c Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Mon, 5 Jan 2026 13:31:32 -0300 Subject: [PATCH 1/2] Use Android SDK 34 for the flutter example since we use AGP 7 --- rollbar_flutter/example/android/app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollbar_flutter/example/android/app/build.gradle b/rollbar_flutter/example/android/app/build.gradle index 3b02d5d..db1cbe7 100644 --- a/rollbar_flutter/example/android/app/build.gradle +++ b/rollbar_flutter/example/android/app/build.gradle @@ -22,7 +22,7 @@ if (flutterVersionName == null) { } android { - compileSdkVersion flutter.compileSdkVersion + compileSdkVersion 34 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 @@ -36,7 +36,7 @@ android { defaultConfig { applicationId "com.rollbar.flutter.example" minSdkVersion 19 - targetSdkVersion flutter.targetSdkVersion + targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName } From a134b26ada0a9b8a6a04544fcf31928d93228156 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Mon, 5 Jan 2026 13:44:37 -0300 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- rollbar_flutter/example/android/app/build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rollbar_flutter/example/android/app/build.gradle b/rollbar_flutter/example/android/app/build.gradle index db1cbe7..77c23b3 100644 --- a/rollbar_flutter/example/android/app/build.gradle +++ b/rollbar_flutter/example/android/app/build.gradle @@ -22,6 +22,8 @@ if (flutterVersionName == null) { } android { + // NOTE: compileSdkVersion 34 is required for AGP 7 compatibility. + // When upgrading to SDK 35+, ensure the Android Gradle Plugin is upgraded accordingly. compileSdkVersion 34 compileOptions { @@ -36,6 +38,8 @@ android { defaultConfig { applicationId "com.rollbar.flutter.example" minSdkVersion 19 + // NOTE: targetSdkVersion is intentionally pinned for AGP 7 compatibility. + // Update only after verifying compatibility with the Android Gradle Plugin and Flutter tooling. targetSdkVersion 34 versionCode flutterVersionCode.toInteger() versionName flutterVersionName