diff --git a/flutter_libs/android/build.gradle b/flutter_libs/android/build.gradle index bbf13601..9ad01bac 100644 --- a/flutter_libs/android/build.gradle +++ b/flutter_libs/android/build.gradle @@ -25,6 +25,10 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + if (project.android.hasProperty("namespace")) { + namespace 'io.objectbox.objectbox_flutter_libs' + } + compileSdkVersion 31 compileOptions { diff --git a/sync_flutter_libs/android/build.gradle b/sync_flutter_libs/android/build.gradle index c0cfb61c..eb76ec3f 100644 --- a/sync_flutter_libs/android/build.gradle +++ b/sync_flutter_libs/android/build.gradle @@ -25,6 +25,10 @@ apply plugin: 'com.android.library' apply plugin: 'kotlin-android' android { + if (project.android.hasProperty("namespace")) { + namespace 'io.objectbox.objectbox_sync_flutter_libs' + } + compileSdkVersion 31 compileOptions {