flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

firebase_auth: ^5.1.4 and firebase_core: ^3.3.0

Open mustakimcse opened this issue 1 year ago • 10 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

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

Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

mustakimcse avatar Aug 22 '24 06:08 mustakimcse

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?

SelaseKay avatar Aug 22 '24 08:08 SelaseKay

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

mustakimcse avatar Aug 22 '24 08:08 mustakimcse

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

SelaseKay avatar Aug 22 '24 08:08 SelaseKay

i try this same error

mustakimcse avatar Aug 22 '24 09:08 mustakimcse

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

SelaseKay avatar Aug 22 '24 09:08 SelaseKay

no help this comments

mustakimcse avatar Aug 22 '24 09:08 mustakimcse

i using android studio

mustakimcse avatar Aug 22 '24 09:08 mustakimcse

What version of Visual Studio do you have installed?

SelaseKay avatar Aug 22 '24 09:08 SelaseKay

i using android studio

mustakimcse avatar Aug 22 '24 09:08 mustakimcse

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

SelaseKay avatar Aug 22 '24 09:08 SelaseKay

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 avatar Sep 02 '24 01:09 google-oss-bot

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.

google-oss-bot avatar Sep 10 '24 01:09 google-oss-bot