Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: Namespace not specified #108

Open
rekire opened this issue Jun 20, 2024 · 3 comments · May be fixed by #109
Open

Android: Namespace not specified #108

rekire opened this issue Jun 20, 2024 · 3 comments · May be fixed by #109

Comments

@rekire
Copy link

rekire commented Jun 20, 2024

I get this exception when building my app for Android:

Failed to query the value of property 'buildFlowServiceProperty'.

Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@17b5eafd of type BuildFlowService.Parameters
A problem occurred configuring project ':flutter_libserialport'.
> 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. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.

If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

You just need to set the namespace (and likely update some dependencies) to resolve this.

@rekire rekire linked a pull request Jun 21, 2024 that will close this issue
@MatthewHightech
Copy link

I just came across this issue. Is there a fix that I can implement?

@rekire
Copy link
Author

rekire commented Oct 24, 2024

Let me quote myself from the pull request with the fix.

For others who might want to test it:

dependencies:
  // other dependencies
  flutter_libserialport: #^0.5.0
    # remove this git part when 0.5.0 is published
    git:
      url: https://github.com/snabble/flutter_libserialport.git
      ref: 0.5.0

@ImadMAKS
Copy link

Just tested it and it works with that fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants