From 1db62fd53adf9b34d4b769788d6c4be4fa416817 Mon Sep 17 00:00:00 2001 From: Adrian Grigo Date: Thu, 22 Feb 2024 01:18:18 +1100 Subject: [PATCH] Add namespace to build.gradle After upgrading Android Gradle Plugin to avoid imperative mode following https://docs.flutter.dev/release/breaking-changes/flutter-gradle-plugin-apply, the cr_file_saver fails to build without a namespace. A problem occurred configuring project ':cr_file_saver'. > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. > Namespace not specified. Please specify a namespace in the module's build.gradle file like so: android { namespace 'com.example.namespace' } This adds a namespace to fix the issue --- android/build.gradle | 2 ++ 1 file changed, 2 insertions(+) diff --git a/android/build.gradle b/android/build.gradle index d46258b..80953af 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -27,6 +27,8 @@ apply plugin: 'kotlin-android' android { compileSdkVersion 31 + namespace = "com.cleveroad.cr_file_saver" + compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8