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

Build Failed in Android Platfrom #1466

Open
ghost opened this issue Nov 16, 2024 · 4 comments
Open

Build Failed in Android Platfrom #1466

ghost opened this issue Nov 16, 2024 · 4 comments
Labels
🍻 discussion Priority: Waiting to be assigned To be inside the next release process, it need to be marked with some level of priority
Milestone

Comments

@ghost
Copy link

ghost commented Nov 16, 2024

Describe the issue
After selecting the platform as Android, an error occurs when building the Flutter project.
This issue seems to be related to the version of the ’connectivity_plus‘ package.

To Reproduce (MUST BE PROVIDED)

  1. create a new empty flutter project
  2. run flutter pub add graphql_flutter
  3. select AVD(android vitual device)
  4. run main.dart
  5. build failed

device / execution context

  • flutter version:3.24.5
  • android api 34
  • graphql_flutter 5.1.2

screenshots

Waiting for another flutter command to release the startup lock...
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':connectivity_plus'.
> 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.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 21s
Error: Gradle task assembleDebug failed with exit code 1

Exited (1).

@ufumerfarooq67
Copy link

Hi,

I am also getting the same error with this package however the simple graphql runs fine.

@vincenzopalazzo
Copy link
Collaborator

Did you try to use the beta version? it should be stable and probably will be released in December

@vincenzopalazzo vincenzopalazzo added this to the v5.2.0 milestone Nov 17, 2024
@vincenzopalazzo vincenzopalazzo added 🍻 discussion Priority: Waiting to be assigned To be inside the next release process, it need to be marked with some level of priority labels Nov 17, 2024
@ashen-n
Copy link

ashen-n commented Nov 21, 2024

It's my another account, I didn't try beta version, I just use flutter pub add. Got it, I will try it later.

@vincenzopalazzo
Copy link
Collaborator

It's my another account, I didn't try beta version, I just use flutter pub add. Got it, I will try it later.

yes please try to work always with the beta one that it is the more recent one and it is not unstable, the alpha is consider unstable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍻 discussion Priority: Waiting to be assigned To be inside the next release process, it need to be marked with some level of priority
Projects
None yet
Development

No branches or pull requests

3 participants