Shopify / react-native-skia

High-performance React Native Graphics using Skia
https://shopify.github.io/react-native-skia
MIT License
6.98k stars 452 forks source link

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

Open arafat813 opened 1 month ago

arafat813 commented 1 month ago

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' 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' 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' 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>' 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>' 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

wcandillon commented 3 weeks ago

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