zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 622 forks source link

Build Failed in Android Platfrom #1466

Open ghost opened 5 days ago

ghost commented 5 days ago

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

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 commented 4 days ago

Hi,

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

vincenzopalazzo commented 4 days ago

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

ashen-n commented 16 hours ago

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 commented 16 hours ago

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