Closed Ali-Fadaei closed 8 months ago
Hi @Ali-Fadaei, are you unable to run your app when you add firebase_core to your app? Although I see the errors, I am able to run the app just fine.
@danagbemava-nc Hi! Yes, I'm unable to run app just after trying and failing over 10 times. so, I had questions about it.
Can you share the output of flutter run -v
? The output may be huge so kindly put it into a .txt file and attach it here.
Hey @Ali-Fadaei. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
@danagbemava-nc
I have the same problem To simulate in a normal project, just enter the following values in pubspec.yaml
dependencies:
flutter:
sdk: flutter
firebase_core: ^2.25.0
firebase_analytics: ^10.8.1
firebase_crashlytics: ^3.4.10
firebase_messaging: ^14.7.11
We get the following error
CMake Deprecation Warning at C:/Users/mbfakourii/Project/based_widget/issues_12175/build/windows/x64/extracted/firebase_cpp_sdk_windows/CMakeLists.txt:17 (cmake_minimum_required):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
and my flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[β] Flutter (Channel stable, 3.16.9, on Microsoft Windows [Version 10.0.22631.3007], locale en-US)
[β] Windows Version (Installed version of Windows is version 10 or higher)
[β] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[β] Chrome - develop for the web
[β] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.4)
[β] Android Studio (version 2023.1)
[β] VS Code (version 1.86.0)
[β] Connected device (3 available)
[β] Network resources
β’ No issues found!
and the output of the flutter run -v
Hi @mbfakourii, what are the specs of the windows machine you're testing on? I think this may be a device specific issue. Although I see the cmake warnings on my windows laptop, I'm able to run the app without any issues
@danagbemava-nc
Yes, the program runs, but I get a warning every time it runs !
My system Information :
System Information report written at: 02/07/24 15:01:58
System Name: MBFAKOURII-PC
[System Summary]
Item Value
OS Name Microsoft Windows 11 Pro
Version 10.0.22631 Build 22631
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name MBFAKOURII-PC
System Manufacturer ASUS
System Model System Product Name
System Type x64-based PC
System SKU SKU
Processor Intel(R) Core(TM) i3-10100 CPU @ 3.60GHz, 3600 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date American Megatrends Inc. 2001, 2/1/2023
SMBIOS Version 3.3
Embedded Controller Version 255.255
BIOS Mode UEFI
BaseBoard Manufacturer ASUSTeK COMPUTER INC.
BaseBoard Product ROG STRIX B560-A GAMING WIFI
BaseBoard Version Rev 1.xx
Platform Role Desktop
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\Windows
System Directory C:\Windows\system32
Boot Device \Device\HarddiskVolume3
Locale United States
Hardware Abstraction Layer Version = "10.0.22621.2506"
User Name MBFAKOURII-PC\mbfakourii
Time Zone Iran Standard Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 14.8 GB
Available Physical Memory 7.17 GB
Total Virtual Memory 25.4 GB
Available Virtual Memory 4.97 GB
Page File Space 10.5 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Not enabled
Windows Defender Application Control policy Enforced
Windows Defender Application Control user mode policy Off
Device Encryption Support Elevation Required to View
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes
Hey @Ali-Fadaei. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.
If you have more information that will help us get to the bottom of this, just add a comment!
cc @danagbemava-nc
Hi @mbfakourii, those logs are coming from the c++ sdk and is not something the plugin controls. If you are able to run the app without any issues then you should be fine. This issue is about not being able to run the app
Since there haven't been any recent updates here, I am going to close this issue.
@Ali-Fadaei if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.
C:\myappF\flutter_application_laghazala>flutter run Launching lib\main.dart on Windows in debug mode... CMake Deprecation Warning at C:/myappF/flutter_application_laghazala/build/windows/x64/extracted/firebase_cpp_sdk_windows/CMakeLists.txt:17 (cmake_minimum_required): Compatibility with CMake < 3.5 will be removed from a future version of CMake.
Update the VERSION argument
LINK : fatal error LNK1104: impossible d'ouvrir le fichier '..\extracted\firebase_cpp_sdk_windows\libs\windows\VS2019\MD\x64\Debug\firebase_app.lib' [C:\myappF\flutter_application_laghazala\build\windows\x64\runner\flutter_application_laghazala.vcxproj] Building Windows application... 25,3s Error: Build process failed.
Bug report
Describe the bug adding firebase_core to project cause unexpected behave on run/build windows platform. when run/build firebase_core included project in windows platform first time, it's download firebase_cpp_sdk_windows_11.6.0.zip file with 627MB Size, after that throws some LNK errors related to downloaded SDK libs. Question 1: if firebase doesn't support windows platform why should download this huge file? (Download fails frequently and its annoying) Question2: if it's necessary why those errors happen?
PS: also firebase_cpp_sdk_windows have Deprecation Warning:
Steps to reproduce
Steps to reproduce the behavior: flutter pub add firebase_core: ^2.24.2 flutter pub add firebase_messaging: ^14.7.10 flutter run -d windows
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` [!] Flutter (Channel stable, 3.16.7, on Microsoft Windows [Version 10.0.22621.3007], locale en-US) ! Warning: `flutter` on your path resolves to C:\Flutter\flutter.bat, which is not inside your current Flutter SDK checkout at C:\Flutter\flutter. Consider adding C:\Flutter\flutter\bin to the front of your path. ! Warning: `dart` on your path resolves to C:\Flutter\dart.bat, which is not inside your current Flutter SDK checkout at C:\Flutter\flutter. Consider adding C:\Flutter\flutter\bin to the front of your path. [β] Windows Version (Installed version of Windows is version 10 or higher) [β] Android toolchain - develop for Android devices (Android SDK version 33.0.0) [β] Chrome - develop for the web (Cannot find Chrome executable at .\Google\Chrome\Application\chrome.exe) ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable. [β] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.8.4) [β] Android Studio (version 2021.2) [β] VS Code (version 1.85.2) [β] Connected device (2 available) [β] Network resources ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 3.2.4 Flutter SDK 3.16.7 mars_car_tracker 1.0.0+1 dependencies: - animate_do 3.1.2 [flutter] - animations 2.0.10 [flutter] - bitsdojo_window 0.1.6 [flutter bitsdojo_window_platform_interface bitsdojo_window_windows bitsdojo_window_macos bitsdojo_window_linux] - bloc 8.1.2 [meta] - carousel_slider 4.2.1 [flutter] - cupertino_icons 1.0.6 - device_info_plus 9.1.1 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry] - dio 5.4.0 [async http_parser meta path] - equatable 2.0.5 [collection meta] - firebase_analytics 10.8.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_core 2.24.2 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 3.4.9 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_messaging 14.7.10 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine] - flutter_bloc 8.1.3 [bloc flutter provider] - flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math web] - flutter_multi_formatter 2.12.3 [flutter collection base58check bech32] - flutter_staggered_animations 1.1.1 [flutter] - flutter_svg 2.0.9 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler] - geolocator 10.1.0 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows] - go_router 13.0.0 [collection flutter flutter_web_plugins logging meta] - hive 2.2.3 [meta crypto] - lottie 2.7.0 [archive flutter path vector_math] - overlay_support 2.1.0 [flutter async] - package_info_plus 5.0.1 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32] - path_provider 2.1.1 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - persian_number_utility 1.1.4 - pin_code_fields 8.0.1 [flutter] - pretty_dio_logger 1.3.1 [dio] - responsive_framework 1.1.1 [flutter collection] - shared_preferences 2.2.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - universal_io 2.2.2 [collection meta typed_data] - url_launcher 6.2.2 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] dev dependencies: - flutter_lints 2.0.3 [lints] - flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web] transitive dependencies: - _flutterfire_internals 1.3.16 [collection firebase_core firebase_core_platform_interface flutter meta] - archive 3.4.9 [crypto path pointycastle] - args 2.4.2 - async 2.11.0 [collection meta] - base58check 2.0.0 [crypto collection] - bech32 0.2.2 [convert] - bitsdojo_window_linux 0.1.4 [flutter bitsdojo_window_platform_interface ffi] - bitsdojo_window_macos 0.1.4 [flutter bitsdojo_window_platform_interface ffi] - bitsdojo_window_platform_interface 0.1.2 [flutter meta plugin_platform_interface] - bitsdojo_window_windows 0.1.6 [flutter bitsdojo_window_platform_interface win32 ffi] - boolean_selector 2.1.1 [source_span string_scanner] - characters 1.3.0 - clock 1.1.1 - collection 1.18.0 - convert 3.1.1 [typed_data] - crypto 3.0.3 [typed_data] - device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface] - fake_async 1.3.1 [clock collection] - ffi 2.1.0 - file 7.0.0 [meta path] - firebase_analytics_platform_interface 3.9.0 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.5.5+12 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.10.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.6.16 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 4.5.18 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.5.18 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web] - geolocator_android 4.4.0 [flutter geolocator_platform_interface uuid] - geolocator_apple 2.3.3 [flutter geolocator_platform_interface] - geolocator_platform_interface 4.2.0 [flutter plugin_platform_interface vector_math meta] - geolocator_web 2.2.0 [flutter flutter_web_plugins geolocator_platform_interface] - geolocator_windows 0.2.2 [flutter geolocator_platform_interface] - http 1.1.2 [async http_parser meta web] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - intl 0.18.1 [clock meta path] - js 0.6.7 [meta] - lints 2.1.1 - logging 1.2.0 - matcher 0.12.16 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.5.0 [collection] - meta 1.10.0 - nested 1.0.0 [flutter] - package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - path 1.8.3 - path_parsing 1.0.1 [vector_math meta] - path_provider_android 2.2.2 [flutter path_provider_platform_interface] - path_provider_foundation 2.3.1 [flutter path_provider_platform_interface] - path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface] - path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32] - petitparser 6.0.2 [meta] - platform 3.1.3 - plugin_platform_interface 2.1.7 [meta] - pointycastle 3.7.3 [collection convert js] - provider 6.1.1 [collection flutter nested] - shared_preferences_android 2.2.1 [flutter shared_preferences_platform_interface] - shared_preferences_foundation 2.3.4 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_platform_interface 2.3.1 [flutter plugin_platform_interface] - shared_preferences_web 2.2.2 [flutter flutter_web_plugins shared_preferences_platform_interface web] - shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - sky_engine 0.0.99 - source_span 1.10.0 [collection path term_glyph] - sprintf 7.0.0 - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - string_scanner 1.2.0 [source_span] - term_glyph 1.2.1 - test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - typed_data 1.3.2 [collection] - url_launcher_android 6.2.0 [flutter url_launcher_platform_interface] - url_launcher_ios 6.2.1 [flutter url_launcher_platform_interface] - url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface] - url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.2.0 [flutter plugin_platform_interface] - url_launcher_web 2.2.2 [flutter flutter_web_plugins url_launcher_platform_interface web] - url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface] - uuid 4.2.2 [crypto sprintf meta] - vector_graphics 1.1.9+1 [flutter vector_graphics_codec] - vector_graphics_codec 1.1.9+1 - vector_graphics_compiler 1.1.9+1 [args meta path_parsing xml vector_graphics_codec path] - vector_math 2.1.4 - web 0.3.0 - win32 5.1.1 [ffi] - win32_registry 1.1.2 [ffi win32] - xdg_directories 1.0.3 [meta path] - xml 6.5.0 [collection meta petitparser] ```