---
title: "Nutrient Flutter SDK support for projects using Android Gradle Plugin 7"
canonical_url: "https://www.nutrient.io/guides/flutter/troubleshooting/using-android-gradle-plugin-7/"
md_url: "https://www.nutrient.io/guides/flutter/troubleshooting/using-android-gradle-plugin-7.md"
last_updated: "2026-05-15T15:53:41.581Z"
description: "Solutions for common issues and errors in Nutrient Flutter SDK with debugging tips and workarounds."
---

Nutrient Flutter SDK supports projects that use Android Gradle Plugin (AGP) 8.* and above. If your project uses AGP 7.*, make the following changes to the project’s Gradle settings file to use Nutrient Flutter SDK.

1. Open the project’s Gradle settings file, `android/settings.gradle`:

   `bash  	open android/settings.gradle`

2. Update the `pluginManagement` block in the `android/settings.gradle` file as follows:

   ```diff

   pluginManagement {...
   +    buildscript {
   +        repositories {
   +            mavenCentral()
   +            maven {
   +                url = uri("https://storage.googleapis.com/r8-releases/raw")
   +            }
   +        }
   +        dependencies {
   +            classpath("com.android.tools:r8:8.3.37")
   +       }
   +    }
   }

   // Upgrade Kotlin version.
   plugins {
   id "dev.flutter.flutter-plugin-loader" version "1.0.0"
   id "com.android.application" version "7.3.0" apply false
   -   id "org.jetbrains.kotlin.android" version "1.7.10" apply false
   +   id "org.jetbrains.kotlin.android" version "1.8.22" apply false
   }
   ```

This step involves enabling R8 for code shrinking (not required for AGP 8.* and above) and upgrading the Kotlin version.

---

## Related pages

- [How to add the license key for your Flutter app](/guides/flutter/troubleshooting/add-license-key.md)
- [How to find your iOS app bundle ID quickly](/guides/flutter/troubleshooting/finding-the-bundle-id.md)
- [Flutter Configuration Problems](/guides/flutter/troubleshooting/flutter-configuration-problems.md)
- [Ios Flutter Platform Not Detected](/guides/flutter/troubleshooting/ios-flutter-platform-not-detected.md)
- [Cocoapods Conflicts With Asdf](/guides/flutter/troubleshooting/cocoapods-conflicts-with-asdf.md)
- [Manage status bar appearance in Flutter](/guides/flutter/troubleshooting/view-controller-based-status-bar-appearance.md)
- [How to find your current SDK version](/guides/flutter/troubleshooting/getting-the-currently-used-version.md)
- [Pspdfkit Widget Appcompat Activity Issue](/guides/flutter/troubleshooting/pspdfkit-widget-appcompat-activity-issue.md)
- [What Is An App Id](/guides/flutter/troubleshooting/what-is-an-app-id.md)
- [Understanding bundle IDs for iOS app development](/guides/flutter/troubleshooting/what-is-a-bundle-id.md)
- [Measurement Magnifier Not Working On Android](/guides/flutter/troubleshooting/measurement-magnifier-not-working-on-android.md)

