firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.71k stars 3.97k forks source link

🐛 [ firebase_core: ^1.0.2 ] Android build failed #5650

Closed kherel closed 3 years ago

kherel commented 3 years ago

Bug report

Describe the bug Cannot start a project on Android emulator. iOs simulator works fine.

Steps to reproduce

flutter run

Expected behavior

Launching lib/main.dart on AOSP on IA Emulator in debug mode... lib/main.dart:1

FAILURE: Build failed with an exception.

BUILD FAILED in 16s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

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, 2.0.4, on macOS 11.1 20C69 darwin-x64, locale en) [✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [✓] Xcode - develop for iOS and macOS [✓] Chrome - develop for the web [✓] Android Studio (version 4.1) [✓] IntelliJ IDEA Community Edition (version 2019.1.3) [✓] VS Code (version 1.55.0) [✓] Connected device (2 available) • No issues found!```

Flutter dependencies

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

Click To Expand ``` Dart SDK 2.12.2 Flutter SDK 2.0.4 tughillroasters 1.0.0+1 dependencies: - bloc 7.0.0 [meta] - cloud_firestore 1.0.3 [cloud_firestore_platform_interface cloud_firestore_web firebase_core firebase_core_platform_interface flutter meta] - collection 1.15.0 - crypto 3.0.1 [collection typed_data] - cubit_form 1.0.2-nullsafety.0 [flutter bloc email_validator equatable flutter_bloc mask_text_input_formatter] - cupertino_icons 1.0.2 - dio 4.0.0 [http_parser path] - email_validator 2.0.1 - enum_to_string 2.0.1 - equatable 2.0.0 [collection meta] - firebase_auth 1.0.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 1.0.2 [firebase_core_platform_interface firebase_core_web flutter meta] - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine] - flutter_bloc 7.0.0 [flutter bloc provider] - flutter_dotenv 4.0.0-nullsafety.0 [flutter] - flutter_facebook_auth 3.3.2 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web] - get_it 6.0.0 [async collection] - google_sign_in 5.0.1 [google_sign_in_platform_interface google_sign_in_web flutter meta] - http 0.13.1 [http_parser meta path pedantic] - intl 0.17.0 [clock path] - json_annotation 4.0.1 - mask_text_input_formatter 2.0.0-nullsafety.2 [flutter] - provider 5.0.0 [collection flutter nested] - rxdart 0.26.0 - sign_in_with_apple 3.0.0 [flutter meta] - square_in_app_payments 1.7.0 [flutter built_value built_collection meta] - stream_transform 2.0.0 - url_launcher 6.0.3 [flutter url_launcher_platform_interface url_launcher_linux url_launcher_macos url_launcher_windows url_launcher_web] dev dependencies: - build_runner 1.12.2 [args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style glob graphs http_multi_server io js logging meta mime path pedantic pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - flutter_launcher_icons 0.9.0 [args image path yaml] - flutter_native_splash 1.1.7+1 [image meta path xml yaml] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data] - json_serializable 4.1.0 [analyzer build build_config collection json_annotation meta path source_gen] - matcher 0.12.10 [stack_trace] - mockito 5.0.3 [analyzer build code_builder collection dart_style matcher meta path source_gen test_api] transitive dependencies: - _fe_analyzer_shared 19.0.0 [meta] - analyzer 1.3.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml pedantic] - archive 3.1.2 [crypto path] - args 2.0.0 - async 2.5.0 [collection] - boolean_selector 2.1.0 [source_span string_scanner] - build 2.0.0 [analyzer async convert crypto glob logging meta path] - build_config 0.4.7 [checked_yaml json_annotation meta path pubspec_parse yaml] - build_daemon 2.1.10 [built_collection built_value http_multi_server logging pedantic path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.0.0 [analyzer build crypto graphs logging path package_config pool pub_semver stream_transform] - build_runner_core 6.1.12 [async build build_config build_resolvers collection convert crypto glob graphs logging meta path package_config pedantic pool timing watcher yaml] - built_collection 5.0.0 - built_value 8.0.4 [built_collection collection fixnum] - characters 1.1.0 - charcode 1.2.0 - checked_yaml 2.0.1 [json_annotation source_span yaml] - cli_util 0.3.0 [meta path] - clock 1.1.0 - cloud_firestore_platform_interface 4.0.0 [collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 1.0.3 [cloud_firestore_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - code_builder 3.7.0 [built_collection built_value collection matcher meta] - convert 3.0.0 [typed_data] - dart_style 2.0.0 [analyzer args path pub_semver source_span] - fake_async 1.2.0 [clock collection] - file 6.1.0 [meta path] - firebase_auth_platform_interface 4.0.0 [firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 1.0.3 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta] - firebase_core_platform_interface 4.0.0 [flutter meta plugin_platform_interface] - firebase_core_web 1.0.2 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.0.0 - flutter_facebook_auth_platform_interface 2.4.0 [flutter plugin_platform_interface] - flutter_facebook_auth_web 2.4.1 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface] - flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math] - glob 2.0.1 [async collection file path pedantic string_scanner] - google_sign_in_platform_interface 2.0.1 [flutter meta quiver] - google_sign_in_web 0.10.0 [google_sign_in_platform_interface flutter flutter_web_plugins meta js] - graphs 1.0.0 - http_multi_server 3.0.0 [async] - http_parser 4.0.0 [charcode collection source_span string_scanner typed_data] - image 3.0.2 [archive meta xml] - io 1.0.0 [meta path string_scanner] - js 0.6.3 - logging 1.0.1 - meta 1.3.0 - mime 1.0.0 - nested 1.0.0 [flutter] - package_config 2.0.0 [path] - path 1.8.0 - pedantic 1.11.0 - petitparser 4.0.2 [meta] - plugin_platform_interface 2.0.0 [meta] - pool 1.5.0 [async stack_trace] - pub_semver 2.0.0 [collection] - pubspec_parse 1.0.0 [checked_yaml collection json_annotation pub_semver yaml] - quiver 3.0.0 [matcher] - shelf 1.1.0 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - source_gen 1.0.0 [analyzer async build dart_style glob meta path pedantic source_span] - source_span 1.8.0 [charcode collection path term_glyph] - stack_trace 1.10.0 [path] - stream_channel 2.1.0 [async] - string_scanner 1.1.0 [charcode source_span] - term_glyph 1.2.0 - test_api 0.2.19 [async boolean_selector collection meta path source_span stack_trace stream_channel string_scanner term_glyph matcher] - timing 1.0.0 [json_annotation] - typed_data 1.3.0 [collection] - url_launcher_linux 2.0.0 [flutter] - url_launcher_macos 2.0.0 [flutter] - url_launcher_platform_interface 2.0.2 [flutter plugin_platform_interface] - url_launcher_web 2.0.0 [url_launcher_platform_interface meta flutter flutter_web_plugins] - url_launcher_windows 2.0.0 [flutter] - vector_math 2.1.0 - watcher 1.0.0 [async path pedantic] - web_socket_channel 2.0.0 [async crypto stream_channel] - xml 5.0.2 [collection meta petitparser] - yaml 3.1.0 [collection source_span string_scanner]```

kherel commented 3 years ago

my mistake added in build.grandle

rootProject.ext {
  set('FlutterFire', [
    FirebaseSDKVersion: '25.12.0'
  ])
}