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.69k stars 3.97k forks source link

firebase_auth: ^5.1.4 and firebase_core: ^3.3.0 #13206

Closed Mustakim-final closed 1 month ago

Mustakim-final commented 2 months ago

Is there an existing issue for this?

Which plugins are affected?

Other

Which platforms are affected?

Windows

Description

when i bulid windows application its not bulid

Reproducing the issue

_CRT_SECURE_NO_WARNINGS issue

Firebase Core version

3.3.0

Flutter Version

3.22.3

Relevant Log Output

F:\android\meal\build\windows\x64\extracted\firebase_cpp_sdk_windows\include\firebase/variant.h(801,7): error C2220: the following warning is treated as an error [F:\android\meal\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]
F:\android\meal\build\windows\x64\extracted\firebase_cpp_sdk_windows\include\firebase/variant.h(801,7): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [F:\android\meal\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]
F:\android\meal\build\windows\x64\extracted\firebase_cpp_sdk_windows\include\firebase/variant.h(827,7): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [F:\android\meal\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]
F:\android\meal\build\windows\x64\extracted\firebase_cpp_sdk_windows\include\firebase/variant.h(801,7): error C2220: the following warning is treated as an error [F:\android\meal\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]
F:\android\meal\build\windows\x64\extracted\firebase_cpp_sdk_windows\include\firebase/variant.h(801,7): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [F:\android\meal\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]
F:\android\meal\build\windows\x64\extracted\firebase_cpp_sdk_windows\include\firebase/variant.h(827,7): warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. [F:\android\meal\build\windows\x64\plugins\firebase_auth\firebase_auth_plugin.vcxproj]
Error: Build process failed.

Flutter dependencies

Expand Flutter dependencies snippet
```yaml Replace this line with the contents of your `flutter pub deps -- --style=compact`. ```

Additional context and comments

No response

SelaseKay commented 2 months ago

Hi @Mustakim-final . Have you tried flutter clean and flutter pub get? On the other hand, there's a similar issue that has been closed. Kindly refer to this issue to see if any of the comments help?

Mustakim-final commented 2 months ago

firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_desktop.obj) : warning LNK4099: PDB 'firebase_app.pdb' was not found with 'firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_app_desktop.obj)' or at 'F:\android\meal\build\windows\x64\runner\Debug\firebase_app.pdb'; linking object as if no debug info [F:\android\meal\build\windows\x64\runner\meal.vcxproj] given this errror when i use firebase auth and firebase core

SelaseKay commented 2 months ago

Hi @Mustakim-final . Did you try out the above comment?

Mustakim-final commented 2 months ago

i try this same error

SelaseKay commented 2 months ago

Did you visit the link as well? Did any of the comments help?

Mustakim-final commented 2 months ago

no help this comments

Mustakim-final commented 2 months ago

i using android studio

SelaseKay commented 2 months ago

What version of Visual Studio do you have installed?

Mustakim-final commented 2 months ago

i using android studio

SelaseKay commented 2 months ago

Yes. I'm aware you're using android studio. However, you need to have Visual Studio installed when you want to run flutter apps on windows platform. Please refer to this link

google-oss-bot commented 1 month ago

Hey @Mustakim-final. 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!

google-oss-bot commented 1 month ago

Since there haven't been any recent updates here, I am going to close this issue.

@Mustakim-final 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.