skip to Main Content

When i add the firebase_core package in pubspec.yaml and try to run the app i got this error:

CMake Error at flutter/ephemeral/.plugin_symlinks/firebase_core/windows/CMakeLists.txt:71 (add_subdirectory):
  The source directory

    C:/Users/soft/Desktop/flutter_application/build/windows/extracted/firebase_cpp_sdk

  does not contain a CMakeLists.txt file.


Exception: Unable to generate build files
Exited (sigterm)

And when i delete the package from pubspec.yaml the app launch without any error

i tried to create a new app and linked with firebase than add the same package and i got the same error .

2

Answers


  1. Try Deleting the build directory: or try deleting the build directory in your Flutter project and then rebuilding the app. You can delete the build directory by running rm -rf build on macOS/Linux or rmdir /s /q build on Windows.

    Login or Signup to reply.
  2. I was get this error, and i fixed it.
    This error came when the debbuging of your main.dart file’s was interrupted.
    So, for fixing it do these commandes:
    1- Flutter clean
    2- Flutter pub get

    And wait the entire debugging of your main.dart file, even if it’s taking many times.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search