Issue: Missing namespace Declaration in nsd_android Module

#73 · closed · 0 comments

View on GitHub ↗

Okladnoj

### Description When integrating the nsd plugin into a Flutter project, the build fails due to a missing namespace declaration in the nsd_android module. The error message is as follows: ```log A problem occurred configuring project ':nsd_android'. > Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl. > Namespace not specified. Specify a namespace in the module's build file. ``` Steps to Reproduce: 1. Add the nsd plugin to a Flutter project. 2. Attempt to build the project for Android. 3. Observe the build failure with the missing namespace error. Suggested Fix: To resolve this, a namespace should be added to the android block of the nsd_android module’s build.gradle file. For example: ```gradle android { compileSdkVersion 31 namespace 'com.haberey.flutter.nsd_android' ... } ``` Environment: • Flutter version: [Channel stable, 3.24.3, on macOS 14.6.1 23G93 darwin-arm64] • Android Gradle Plugin: 7.1.3 (or newer) • Gradle: 7.5 ### Scenario Use the plugin in my own application via Flutter dependency ### Platform Android

Comments