We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 675defe commit a750ce5Copy full SHA for a750ce5
1 file changed
android/build.gradle
@@ -27,7 +27,12 @@ apply plugin: 'kotlin-android'
27
android {
28
compileSdkVersion 31
29
30
- namespace = 'dev.fluttercommunity.android_id'
+ // Only set namespace on compatible versions (Android Gradle plugin >= 7.0.0)
31
+ // The if-check checks for a property that has been removed since AGP 7.0.0
32
+ // https://developer.android.com/build/releases/past-releases/agp-7-0-0-release-notes#build-cache-removed
33
+ if (!project.hasProperty("android.buildCacheDir")) {
34
+ namespace = 'dev.fluttercommunity.android_id'
35
+ }
36
37
compileOptions {
38
sourceCompatibility JavaVersion.VERSION_1_8
0 commit comments