diff --git a/rollbar_flutter/example/android/app/build.gradle b/rollbar_flutter/example/android/app/build.gradle index 3b02d5d..77c23b3 100644 --- a/rollbar_flutter/example/android/app/build.gradle +++ b/rollbar_flutter/example/android/app/build.gradle @@ -22,7 +22,9 @@ if (flutterVersionName == null) { } android { - compileSdkVersion flutter.compileSdkVersion + // 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 { sourceCompatibility JavaVersion.VERSION_1_8 @@ -36,7 +38,9 @@ android { defaultConfig { applicationId "com.rollbar.flutter.example" minSdkVersion 19 - targetSdkVersion flutter.targetSdkVersion + // 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 }