Description
Launching lib\main.dart on Windows in debug mode...
Building Windows application...
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:119 (add_subdirectory):
The source directory
C:/Users/DELL/model_clon_pizza_romi_new/build/windows/x64/extracted/firebase_cpp_sdk_windows
does not contain a CMakeLists.txt file.
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_app".
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_app
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_auth".
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_auth
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_storage".
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_storage
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:125 (get_target_property):
get_target_property() called with non-existent target "firebase_firestore".
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:126 (string):
string sub-command REPLACE requires at least four arguments.
CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:127 (set_target_properties):
set_target_properties Can not find target to add properties to:
firebase_firestore
Error: Unable to generate build files
I followed these command
flutter clean
flutter pub upgrade firebase core
flutter pub get
flutter build [windows]
but three have no changes still getting error
Activity
google-oss-bot commentedon Jun 13, 2024
I found a few problems with this issue:
JamalB96 commentedon Jun 17, 2024
I encountered the same problem when connecting Firebase and trying to run it on Windows
paulpv commentedon Jul 1, 2024
Seems like a problem with the flutterfire scripts and not firebase-cpp-sdk itself.
Given the above error:
That error looks to be coming from:
https://github.com/firebase/flutterfire/blob/a292282d0e64808e4498f065d033852f89795dc0/packages/firebase_core/firebase_core/windows/CMakeLists.txt#L28
I downloaded https://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_windows_12.1.0.zip and unzipped it and there is indeed a
CMakeLists.txt
:myhexolink commentedon Jul 29, 2024
I have the same issue.
So, how to fix it?
alfaruqrizqi18 commentedon Sep 19, 2024
any update for this problem?
Yasilkhan commentedon Sep 19, 2024
Please delete build/windows/x64/CMakeLists.txt file and CMakeFile folder then flutter clean command run on your terminal and then flutter run command. I solved this error in this way
md-rifatkhan commentedon Dec 26, 2024
Any updates? I've stopped my app and when tried to rerun, get this issue and still same: