-
Notifications
You must be signed in to change notification settings - Fork 4k
Windows app doesn't build after updating to latest version of firebase_core #10992
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
Comments
Hi @abdulrehmananwar, can you try the solutions in Baseflow/flutter-permission-handler#819 (comment) or https://stackoverflow.com/questions/71734042/flutter-windows-build-nuget-is-not-installed to see if you're able to solve your issue? This can come up for any number of reasons and does not seem related to firebase_core. Please also make sure that your network connection is stable enough |
network connection is stable after around 10 minitues it return following error
does not contain a CMakeLists.txt file. Exception: Unable to generate build files |
its happed only when i add these packages if i remove these packaged application run smoothly |
Same problem here |
Hi @abdulrehmananwar, can you try running Please also provide the full log of the build command if the above commands do not help. |
did you find any solution? |
I'm also having troubles with firebase_core >2.10.0. Build fails with the following output: Build output
Initially, i had version 2.13.0 of firebase_core. I was getting the error above, then i opened the changelog of firebase_core, and saw changes in 2.11.0, that may be related to this error, so i tried to downgrade to 2.10.0, and it worked. On 2.11.0 i get the same error. So, in my case, changes in 2.11.0 is the reason. flutter doctor -v
|
Hi all, can anyone facing this issue please provide a complete minimal reproducible code sample so that we can investigate this? Thank you |
Hello it is compile error not runtime error |
Hi @danagbemava-nc. In my case, i figured out that the build failed because of #10496. Then i took a look at Visual Studio Build Tools, installed on my machine (i have not installed all the default build tools, because of limited space on my disk with Windows), and assumed that this could be due to the fact that I have not installed required for #10496 build tool. I installed C++/CLI support build tool, and issue gone. |
I can reproduce the issue using a new project. Steps to reproduce
This seems to have started with version logs
|
Getting the same issue with firebase core 2.7.0 |
Awesome that it's reproducible! Firebase strikes again :/ @danagbemava-nc, thank you for not dismissing the problem out of hand. And one thing I, and other developers most likely can do better is creating minimal reproducible samples. |
Reread this thread hoping to find a workaround or solution to this issue. Was able to get it to get everything to compile by installing Visual Studio 2022 edition with the c++ tools, I had the 2019 edition installed. |
I've solved this issue with update VisualStudioBuildTools2019 to version 16.11.27. |
I have tried updated to lates VisualStudio Tools and tried again but still getting the following issues.
|
Just to clarify, there seem to be two issues here:
Upgrading to Visual Studio 2022 fixes the first issue but not the second |
I tried versions of firebase_core 2.9.0 to 2.14.0 and still have this error. I feel this is a missing dependency or DLL. But I can't find a download for trivial anywhere. |
/cc @russellwheatley |
Does anyone know how to fix this? |
Hello, we are in the process of adding Windows support. Overriding to version 2.10.0 when building for windows might help will I'm looking into the issue. |
If you are experiencing the linking issue, could you share your setup? Windows version and if you are running windows using Parallels or not? |
Windows 11 Build 22000.2057 VSCode flutter doctor -v [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.2) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Build Tools 2019 16.8.6) [√] Android Studio (version 2022.2) [√] IntelliJ IDEA Ultimate Edition (version 2020.1) [√] VS Code (version 1.80.0) [√] Connected device (3 available) [√] Network resources • No issues found |
I had the same issue, but after installing "C++/CLI support for v143.." the problem was gone! |
Confirming above works - installing "C++/CLI support for v143.." and doing a clean resolved the issue. I'm running a brand new clean machine with win 11 + flutter 3.10.6 + firebase_core 2.13.1 Perhaps this should be added this as a pre-req on https://docs.flutter.dev/get-started/install/windows in addition to the C++ workflow reqs for VS 2022 |
I can confirm that this works with compiling the app, but... use this for the initializing Firebase Use your settings from the Web app on the Firebase Site. Also, delete the build\windows directory, then rebuild But now I am getting this error (I have permitted in my firewall) |
I believe to actually get it working you'll need to explicitly include https://pub.dev/packages/firebase_core_desktop and https://pub.dev/packages/firebase_auth_desktop |
Are you able to send me a list of your dependencies as I am having issues finding a version combination that works |
Try: dependencies:
firebase_auth: ^3.11.2
firebase_auth_desktop: ^1.0.2
firebase_core: ^1.24.0
firebase_core_desktop: ^1.0.2
flutter:
sdk: flutter The problem is that the non-desktop versions are not up-to-date, there are new major versions available |
That helped, but I am using intl 1.18.0 which flutter requires so I get this Because every version of flutter_localization depends on flutter_localizations from sdk which depends on intl 0.18.0, every version of flutter_localization requires intl 0.18.0. |
I solve this problem updating Visual Studio version. Not the VS Code, but Visual Studio. My version was 2019 and I have updated to 2022. |
I am facing the same issue. I installed the "C++/CLI support for v143" on my VS 2022 but that did not fully fix the issue. I tried adding this line to CMakeLists.txt: flutter doctor ! Doctor found issues in 1 category. (I am facing many errors after installing firebase dependencies in my app. after following many instructions i'm getting the error above. |
See this comment on the dependency for VSCode that you need #10992 (comment) |
@DionJChapman as i mentioned, I have installed the "C++/CLI support for v143" on my VS 2022 (also it can be installed on VS, not the VSCODE). schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1253 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1362 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1362 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data [1371 bytes data] schannel: failed to decrypt data, need more data schannel: failed to decrypt data, need more data` my VS 2022 version is 17.1.5 |
Hi, does it still happen using latest version of Firebase Core? |
Having similar issue: [√] 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.1) [√] Android Studio (version 2022.3) [√] VS Code (version 1.84.2) [√] Connected device (3 available) [√] Network resources • No issues found! firebase_app.lib(d4b2e575872e0fa1bb01894d714f922c_libcurl.dir_Debug_x509asn1.obj) : warning LNK4099: PDB '' was not found with 'firebase_app.lib(d4b2e575872e0fa1bb01894d714f922c_libcurl.dir_Debug_x509asn1.obj)' or at ''; linking object as if no debug info [C:\flutter-recipeapp\recipeapplication\build\windows\runner\recipeapplication.vcxproj] |
Hi @gsloan2, what version of firebase_core are you using? |
Hey @abdulrehmananwar. 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! |
Since there haven't been any recent updates here, I am going to close this issue. @abdulrehmananwar 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. |
yesterday after update to latest version of
firebase_core: ^2.13.0
firebase_messaging: ^14.6.1
when i run my windows desktop it not running up
first it use my 6 Gb drive space .so i run flutter clean to clear my drive space and countinue to use
also return following error
The text was updated successfully, but these errors were encountered: