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

cloud_firestore #10889

Closed
DionJChapman opened this issue May 2, 2023 · 4 comments
Closed

cloud_firestore #10889

DionJChapman opened this issue May 2, 2023 · 4 comments
Labels
resolution: user This was a user issue, e.g. invalid configuration or code. type: bug Something isn't working

Comments

@DionJChapman
Copy link

Bug report

Describe the bug
The following error show when trying to debug when using VS code

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':cloud_firestore'.

Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Please specify a namespace in the module's build.gradle file like so:

 android {
     namespace 'com.example.namespace'
 }

 If the package attribute is specified in the source AndroidManifest.xml, it can be migrated automatically to the namespace value in the build.gradle file using the AGP Upgrade Assistant; please refer to https://developer.android.com/studio/build/agp-upgrade-assistant for more information.

Steps to reproduce

Steps to reproduce the behavior:

  1. import cloud_firestore
  2. Start a Android emulator
  3. Run or Debug
  4. See error or incorrect behavior

Expected behavior

App should compile, Run or Debug

Sample project

Not Required

Please link to the public repository URL.


Additional context

Add any other context about the problem here.


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.12, on macOS 13.3.1 22E261 darwin-arm64, locale en-AU)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.77.3)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!


Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand
Dart SDK 2.19.6
Flutter SDK 3.7.12
platform_todo 1.0.0+1

dependencies:
- cloud_firestore 4.5.3 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cloud_functions 4.1.1 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- cupertino_icons 1.0.5
- desktop_webview_auth 0.0.11 [crypto flutter http flutter_web_plugins plugin_platform_interface]
- firebase_admin 0.2.0 [clock x509 jose dotenv openid_client firebase_dart path meta http crypto_keys collection gcloud]
- firebase_auth 4.4.2 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_auth_admin_verify 1.0.0 [http jose]
- firebase_auth_rest 2.0.3 [freezed_annotation http json_annotation]
- firebase_auth_screen 0.0.28 [bloc crypto equatable firebase firebase_auth firebase_core flutter flutter_bloc flutter_countdown_timer flutter_easyloading flutter_facebook_auth flutter_otp_text_field flutter_signin_button flutter_svg fluttertoast form_builder_chips_input google_sign_in intl_phone_number_input modal_bottom_sheet sheet sign_button sign_in_with_apple sms_autofill social_login_buttons top_snackbar_flutter]
- firebase_auth_token 1.0.5 [http jose synchronized]
- firebase_auth_web 5.3.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
- firebase_cloud_messaging_flutter 1.0.5 [collection googleapis_auth http json_annotation json_serializable]
- firebase_core 2.10.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_database 10.1.1 [firebase_core firebase_core_platform_interface firebase_database_platform_interface firebase_database_web flutter]
- firebase_functions_dart 0.1.1+2 [collection firebase_auth_dart firebase_core_dart http meta storagebox]
- firebase_phone_auth_handler 1.0.8 [flutter provider firebase_auth]
- firebase_ui_auth 1.2.4 [email_validator firebase_auth firebase_core firebase_dynamic_links firebase_ui_localizations firebase_ui_oauth firebase_ui_shared flutter flutter_localizations flutter_svg]
- firebase_ui_localizations 1.3.1 [flutter flutter_localizations path]
- firebase_ui_oauth_facebook 1.1.4 [firebase_auth firebase_ui_oauth flutter flutter_facebook_auth]
- firebase_ui_oauth_google 1.0.21 [firebase_auth firebase_ui_oauth flutter google_sign_in]
- firebase_ui_oauth_twitter 1.1.4 [flutter firebase_auth firebase_ui_oauth twitter_login]
- flutter 0.0.0 [characters collection js material_color_utilities meta vector_math sky_engine]
- flutter_firebase_auth 0.0.1
- flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml]
- flutter_spinkit 5.2.0 [flutter]
- otp 3.1.4 [base32 crypto logging timezone]
- provider 6.0.5 [collection flutter nested]
- sign_in_with_apple 3.3.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web]
- validate_firebase_auth 0.0.1 [very_good_analysis openid_client http meta]

dev dependencies:
- flutter_lints 2.0.1 [lints]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters collection js matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]

transitive dependencies:
- _discoveryapis_commons 1.0.5 [http http_parser meta]
- _fe_analyzer_shared 59.0.0 [meta]
- _flutterfire_internals 1.1.1 [collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 5.11.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.3.7 [crypto path pointycastle]
- args 2.4.0
- asn1lib 1.4.0
- async 2.10.0 [collection meta]
- base32 2.1.3
- bloc 8.1.1 [meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- build 2.3.1 [analyzer async convert crypto glob logging meta path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- characters 1.2.1
- checked_yaml 2.0.2 [json_annotation source_span yaml]
- chips_input 0.0.6 [flutter]
- cli_util 0.4.0 [meta path]
- clock 1.1.1
- cloud_firestore_platform_interface 5.12.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.4.2 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
- cloud_functions_platform_interface 5.2.1 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.4.1 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- collection 1.17.0
- convert 3.1.1 [typed_data]
- crypto 3.0.2 [typed_data]
- crypto_keys 0.3.0+1 [pointycastle meta collection quiver]
- dart_style 2.3.0 [analyzer args path pub_semver source_span]
- dotenv 4.1.0 [args meta]
- email_validator 2.1.17
- equatable 2.0.5 [collection meta]
- expressions 0.2.5 [quiver petitparser rxdart fake_async meta]
- fake_async 1.3.1 [clock collection]
- file 6.1.4 [meta path]
- firebase 9.0.3 [http http_parser js]
- firebase_auth_dart 1.0.1 [firebase_core_dart firebaseapis googleapis_auth http meta storagebox]
- firebase_auth_platform_interface 6.13.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_core_dart 1.0.1 [collection meta]
- firebase_core_platform_interface 4.6.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.3.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_dart 1.0.11 [quiver async logging sortedmap web_socket_channel stream_channel collection meta jose clock googleapis googleapis_auth openid_client hive rxdart http _discoveryapis_commons expressions uuid crypto js synchronized intl]
- firebase_database_platform_interface 0.2.3+1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_database_web 0.2.2+1 [firebase_core firebase_core_web firebase_database_platform_interface flutter flutter_web_plugins js]
- firebase_dynamic_links 5.1.1 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
- firebase_dynamic_links_platform_interface 0.2.4+1 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_ui_oauth 1.2.4 [desktop_webview_auth firebase_auth firebase_ui_auth firebase_ui_shared flutter_svg flutter]
- firebase_ui_shared 1.2.0 [flutter]
- firebaseapis 0.1.2 [_discoveryapis_commons http]
- flutter_bloc 8.1.2 [flutter bloc provider]
- flutter_countdown_timer 4.1.0 [flutter]
- flutter_easyloading 3.0.5 [flutter flutter_spinkit]
- flutter_facebook_auth 4.4.1+1 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web]
- flutter_facebook_auth_platform_interface 3.2.0 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 3.2.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface]
- flutter_form_builder 7.8.0 [flutter intl collection]
- flutter_localizations 0.0.0 [flutter intl characters clock collection js material_color_utilities meta path vector_math]
- flutter_otp_text_field 1.1.1 [flutter]
- flutter_signin_button 2.0.0 [flutter font_awesome_flutter]
- flutter_svg 1.1.6 [flutter meta path_drawing vector_math xml]
- flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
- fluttertoast 8.2.1 [flutter flutter_web_plugins]
- font_awesome_flutter 9.2.0 [flutter]
- form_builder_chips_input 0.0.3 [chips_input flutter flutter_form_builder]
- freezed_annotation 0.14.3 [collection json_annotation meta]
- gcloud 0.8.7 [_discoveryapis_commons googleapis http meta]
- glob 2.1.1 [async collection file path string_scanner]
- google_sign_in 5.4.4 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- google_sign_in_android 6.1.14 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.6.2 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.4.0 [flutter plugin_platform_interface quiver]
- google_sign_in_web 0.10.2+1 [flutter flutter_web_plugins google_sign_in_platform_interface js]
- googleapis 9.2.0 [_discoveryapis_commons http]
- googleapis_auth 1.4.0 [args crypto http http_parser js]
- hive 2.2.3 [meta crypto]
- http 0.13.6 [async http_parser meta]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image 4.0.16 [archive meta xml]
- intl 0.17.0 [clock path]
- intl_phone_number_input 0.7.3+1 [flutter libphonenumber_plugin equatable collection]
- jose 0.3.3 [crypto_keys meta typed_data x509 http http_parser asn1lib collection]
- js 0.6.5 [meta]
- json_annotation 4.8.0 [meta]
- json_serializable 6.6.1 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]
- libphonenumber_platform_interface 0.4.0 [flutter plugin_platform_interface]
- libphonenumber_plugin 0.3.1 [flutter flutter_web_plugins libphonenumber_platform_interface libphonenumber_web]
- libphonenumber_web 0.3.0 [flutter flutter_web_plugins js libphonenumber_platform_interface]
- lints 2.0.1
- logging 1.1.1
- matcher 0.12.13 [meta stack_trace]
- material_color_utilities 0.2.0
- meta 1.8.0
- modal_bottom_sheet 2.1.2 [flutter]
- nested 1.0.0 [flutter]
- openid_client 0.4.7 [jose pointycastle http logging args meta clock]
- package_config 2.1.0 [path]
- path 1.8.2
- path_drawing 1.0.1 [vector_math meta path_parsing flutter]
- path_parsing 1.0.1 [vector_math meta]
- petitparser 5.1.0 [meta]
- pin_input_text_field 4.5.0 [flutter]
- platform 3.1.0
- plugin_platform_interface 2.1.4 [meta]
- pointycastle 3.7.3 [collection convert js]
- process 4.2.4 [file path platform]
- pub_semver 2.1.3 [collection meta]
- pubspec_parse 1.2.2 [checked_yaml collection json_annotation pub_semver yaml]
- quiver 3.2.1 [matcher]
- rxdart 0.27.7
- sheet 0.0.4+1 [flutter]
- sign_button 2.0.3 [flutter]
- sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta]
- sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js]
- sky_engine 0.0.99
- sms_autofill 2.3.0 [pin_input_text_field flutter]
- social_login_buttons 1.0.7 [flutter]
- sortedmap 0.5.3 [quiver]
- source_gen 1.2.7 [analyzer async build dart_style glob path source_span yaml]
- source_helper 1.3.3 [analyzer collection source_gen]
- source_span 1.9.1 [collection path term_glyph]
- stack_trace 1.11.0 [path]
- storagebox 0.1.0+3 [collection meta path xdg_directories]
- stream_channel 2.1.1 [async]
- string_scanner 1.2.0 [source_span]
- synchronized 3.1.0
- term_glyph 1.2.1
- test_api 0.4.16 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- timezone 0.9.2 [path]
- top_snackbar_flutter 1.1.1 [flutter]
- twitter_login 4.3.2 [crypto flutter http]
- typed_data 1.3.1 [collection]
- uuid 3.0.7 [crypto]
- vector_math 2.1.4
- very_good_analysis 2.4.0
- watcher 1.0.2 [async path]
- web_socket_channel 2.4.0 [async crypto stream_channel]
- x509 0.2.3 [asn1lib quiver crypto_keys]
- xdg_directories 0.2.0+3 [meta path process]
- xml 6.2.2 [collection meta petitparser]
- yaml 3.1.1 [collection source_span string_scanner]


@DionJChapman DionJChapman added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels May 2, 2023
@darshankawar darshankawar added the triage Issue is currently being triaged. label May 3, 2023
@darshankawar
Copy link

Thanks for the report @DionJChapman
Is your build.gradle using classpath 'com.android.tools.build:gradle:8.0.0' ?
If so, then AGP 8.0 is not yet supported by flutterfire plugins. See this for reference: #10825

@darshankawar darshankawar added blocked: customer-response Waiting for customer response, e.g. more information was requested. and removed Needs Attention This issue needs maintainer attention. labels May 3, 2023
@DionJChapman
Copy link
Author

DionJChapman commented May 3, 2023 via email

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed blocked: customer-response Waiting for customer response, e.g. more information was requested. labels May 3, 2023
@darshankawar
Copy link

Ok, good to know. Closing as resolved.

@darshankawar darshankawar added resolution: user This was a user issue, e.g. invalid configuration or code. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels May 3, 2023
@DionJChapman
Copy link
Author

DionJChapman commented May 3, 2023 via email

@firebase firebase locked and limited conversation to collaborators Jun 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: user This was a user issue, e.g. invalid configuration or code. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants