1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] adding flutterblue package

Discussão em 'Mobile' iniciado por Stack, Outubro 1, 2024 às 07:12.

  1. Stack

    Stack Membro Participativo

    I want to build an app that uses bluetooth. I read to add "flutterblue:" in the pubspec.yaml file under the "dependencies" section. But when I add this line, run "flutter pub get" in the terminal and try to run the app on the emulator or a real phone I get the following error:

    A problem occurred configuring project ':flutter_blue'.
    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.


    Does somebody know what went wrong here ?

    I expected to not get an error as I only added the package. I did not write a line of code that uses the package yet. I created a new flutter project and tried to run a simple "hello world" code and added the same "flutter_blue" line in the pubspec.yaml file. But I got the same error again

    Continue reading...

Compartilhe esta Página