Skip to content
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

When I start the Android emulator, I encounter an error during launch #2684

Open
arafat813 opened this issue Oct 11, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@arafat813
Copy link

Description

When I use RN 0.75.3 along with RN-skia 1.4.2, an error occurs.

C/C++: ninja: Entering directory `/Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/.cxx/Debug/204r471w/x86_64'
C/C++: In file included from /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/cpp/rnskia/RNSkManager.cpp:8:
C/C++: In file included from /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkApi.h:28:
C/C++: In file included from /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkParagraphBuilder.h:13:
C/C++: /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkParagraphStyle.h:120:31: warning: 'codecvt_utf8_utf16<char16_t>' is deprecated [-Wdeprecated-declarations]
C/C++: std::wstring_convert<std::codecvt_utf8_utf16, T> convertor;
C/C++: ^
C/C++: /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkParagraphStyle.h:72:7: note: in instantiation of function template specialization 'RNSkia::JsiSkParagraphStyle::fromUTF8<char16_t>' requested here
C/C++: fromUTF8(inStr, uStr);
C/C++: ^
C/C++: /Users/goldriven2023/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/codecvt:541:28: note: 'codecvt_utf8_utf16<char16_t>' has been explicitly marked deprecated here
C/C++: class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 codecvt_utf8_utf16
C/C++: ^
C/C++: /Users/goldriven2023/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__config:798:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
C/C++: # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
C/C++: ^
C/C++: /Users/goldriven2023/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__config:771:49: note: expanded from macro '_LIBCPP_DEPRECATED'
C/C++: # define _LIBCPP_DEPRECATED attribute((deprecated))
C/C++: ^
C/C++: In file included from /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/cpp/rnskia/RNSkManager.cpp:8:
C/C++: In file included from /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkApi.h:28:
C/C++: In file included from /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkParagraphBuilder.h:13:
C/C++: /Users/goldriven2023/GoldrivenRnApp/node_modules/@shopify/react-native-skia/android/../cpp/api/JsiSkParagraphStyle.h:120:10: warning: 'wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>' is deprecated [-Wdeprecated-declarations]
C/C++: std::wstring_convert<std::codecvt_utf8_utf16, T> convertor;
C/C++: ^
C/C++: /Users/goldriven2023/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/locale:3603:28: note: 'wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>' has been explicitly marked deprecated here
C/C++: class _LIBCPP_TEMPLATE_VIS _LIBCPP_DEPRECATED_IN_CXX17 wstring_convert
C/C++: ^
C/C++: /Users/goldriven2023/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__config:798:41: note: expanded from macro '_LIBCPP_DEPRECATED_IN_CXX17'
C/C++: # define _LIBCPP_DEPRECATED_IN_CXX17 _LIBCPP_DEPRECATED
C/C++: ^
C/C++: /Users/goldriven2023/Library/Android/sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/darwin-x86_64/sysroot/usr/include/c++/v1/__config:771:49: note: expanded from macro '_LIBCPP_DEPRECATED'
C/C++: # define _LIBCPP_DEPRECATED attribute((deprecated))
C/C++: ^
C/C++: 2 warnings generated.

It seems that the library is using deprecated APIs. How should I handle this?

Version

1.4.2

Steps to reproduce

start the Android emulator

Snack, code example, screenshot, or link to a repository

Image

@arafat813 arafat813 added the bug Something isn't working label Oct 11, 2024
@wcandillon
Copy link
Contributor

Please provide us with a reproduction I also cannot see the error from the log you provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants