DEV Community

Matheus Mastrangi
Matheus Mastrangi

Posted on

can someone pls help me??

When I run "eas build -p android --plataform preview", gradlew return an error

Task :expo-modules-core:buildCMakeRelWithDebInfo[arm64-v8a]
C/C++: ninja: Entering directory `/home/expo/workingdir/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/c2r1g6q3/arm64-v8a'
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --sysroot=/home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dexpo_modules_core_EXPORTS -I/home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/reactnativejni/include/react -I/home/expo/workingdir/build/node_modules/react-native/ReactAndroid/src/main/jni/react/turbomodule -I/home/expo/workingdir/build/node_modules/expo-modules-core/android/../common/cpp -I/home/expo/workingdir/build/node_modules/expo-modules-core/android/src/fabric -isystem /home/expo/.gradle/caches/transforms-3/2b68d13ea7b2a5ccdb1c4fbdda7369bb/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/jsi/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/reactnativejni/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/folly_runtime/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/react_nativemodule_core/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DREACT_NATIVE_TARGET_VERSION=74 -O2 -g -DNDEBUG -fPIC -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -O2 -frtti -fexceptions -Wall -fstack-protector-all -DUSE_HERMES=0 -DUNIT_TEST=0 -std=gnu++20 -MD -MT CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o -MF CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o.d -o CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o -c /home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/cpp/JavaScriptModuleObject.cpp
C/C++: /home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/cpp/JavaScriptModuleObject.cpp:148:28: error: no viable constructor or deduction guide for deduction of template arguments of 'weak_ptr'
C/C++: auto weakConstructor = std::weak_ptr(constructor);
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4690:51: note: candidate template ignored: couldn't infer template argument '_Tp'
C/C++: template _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Yp> const& __r,
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4679:28: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr'
C/C++: class _LIBCPP_TEMPLATE_VIS weak_ptr
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4694:5: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr'
C/C++: weak_ptr(weak_ptr const& __r) _NOEXCEPT;
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4695:51: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr'
C/C++: template _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp> const& __r,
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4701:5: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr'
C/C++: weak_ptr(weak_ptr&& __r) _NOEXCEPT;
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4702:51: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr'
C/C++: template _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r,
C/C++: ^
C/C++: /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4689:23: note: candidate function template not viable: requires 0 arguments, but 1 was provided
C/C++: _LIBCPP_CONSTEXPR weak_ptr() _NOEXCEPT;
C/C++: ^
C/C++: 1 error generated.
Task :react-native-reanimated:configureCMakeRelWithDebInfo[arm64-v8a]
Task :expo:compileReleaseKotlin
w: file:///home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:20:34 'ReactFeatureFlags' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:153:11 'ReactFeatureFlags' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:161:34 'constructor ReactDelegate(Activity!, ReactNativeHost!, String?, Bundle?)' is deprecated. Deprecated in Java
w: file:///home/expo/workingdir/build/node_modules/expo/android/src/main/java/expo/modules/ReactActivityDelegateWrapper.kt:231:10 'ReactFeatureFlags' is deprecated. Deprecated in Java
Task :app:generateReleaseResValues
Task :expo:compileReleaseJavaWithJavac
Task :expo:bundleLibCompileToJarRelease
Task :expo:bundleLibRuntimeToJarRelease
Task :expo:processReleaseJavaRes
Task :expo:createFullJarRelease
Task :app:mapReleaseSourceSetPaths
Task :app:generateReleaseResources
Task :expo:extractReleaseAnnotations
Task :expo:mergeReleaseGeneratedProguardFiles
Task :expo:mergeReleaseConsumerProguardFiles
Task :expo:mergeReleaseJavaResource
Task :expo:syncReleaseLibJars
Task :expo:bundleReleaseLocalLintAar
Task :react-native-gesture-handler:extractProguardFiles
Task :react-native-gesture-handler:writeReleaseLintModelMetadata
Task :react-native-network-info:bundleLibRuntimeToJarRelease
Task :react-native-network-info:processReleaseJavaRes NO-SOURCE
Task :react-native-network-info:createFullJarRelease
Task :react-native-network-info:mergeReleaseJniLibFolders
Task :react-native-network-info:mergeReleaseNativeLibs NO-SOURCE
Task :react-native-network-info:stripReleaseDebugSymbols NO-SOURCE
Task :react-native-network-info:copyReleaseJniLibsProjectAndLocalJars
Task :react-native-network-info:extractDeepLinksForAarRelease
Task :react-native-network-info:extractReleaseAnnotations
Task :react-native-network-info:mergeReleaseGeneratedProguardFiles
Task :react-native-network-info:mergeReleaseConsumerProguardFiles
Task :react-native-network-info:mergeReleaseShaders
Task :react-native-network-info:compileReleaseShaders NO-SOURCE
Task :react-native-network-info:generateReleaseAssets UP-TO-DATE
Task :react-native-network-info:packageReleaseAssets
Task :react-native-network-info:prepareLintJarForPublish
Task :react-native-network-info:prepareReleaseArtProfile
Task :react-native-network-info:mergeReleaseJavaResource
Task :react-native-network-info:syncReleaseLibJars
Task :react-native-network-info:bundleReleaseLocalLintAar
Task :react-native-network-info:extractProguardFiles
Task :react-native-network-info:writeReleaseLintModelMetadata
Task :react-native-network-info:generateReleaseLintModel
Task :react-native-picker_picker:bundleLibRuntimeToJarRelease
Task :react-native-picker_picker:processReleaseJavaRes NO-SOURCE
Task :react-native-picker_picker:createFullJarRelease
Task :react-native-picker_picker:mergeReleaseJniLibFolders
Task :react-native-picker_picker:mergeReleaseNativeLibs NO-SOURCE
Task :react-native-picker_picker:stripReleaseDebugSymbols NO-SOURCE
Task :react-native-picker_picker:copyReleaseJniLibsProjectAndLocalJars
Task :react-native-picker_picker:extractDeepLinksForAarRelease
Task :react-native-picker_picker:extractReleaseAnnotations
Task :react-native-picker_picker:mergeReleaseGeneratedProguardFiles
Task :react-native-picker_picker:mergeReleaseConsumerProguardFiles
Task :react-native-picker_picker:mergeReleaseShaders
Task :react-native-picker_picker:compileReleaseShaders NO-SOURCE
Task :react-native-picker_picker:generateReleaseAssets UP-TO-DATE
Task :react-native-picker_picker:packageReleaseAssets
Task :react-native-picker_picker:prepareLintJarForPublish
Task :react-native-picker_picker:prepareReleaseArtProfile
Task :react-native-picker_picker:mergeReleaseJavaResource
Task :react-native-picker_picker:syncReleaseLibJars
Task :react-native-picker_picker:bundleReleaseLocalLintAar
Task :react-native-picker_picker:extractProguardFiles
Task :react-native-picker_picker:writeReleaseLintModelMetadata
Task :react-native-picker_picker:generateReleaseLintModel
Task :react-native-push-notification:bundleLibRuntimeToJarRelease
Task :react-native-push-notification:processReleaseJavaRes NO-SOURCE
Task :react-native-push-notification:createFullJarRelease
Task :react-native-push-notification:mergeReleaseJniLibFolders
Task :react-native-push-notification:mergeReleaseNativeLibs NO-SOURCE
Task :react-native-push-notification:stripReleaseDebugSymbols NO-SOURCE
Task :react-native-push-notification:copyReleaseJniLibsProjectAndLocalJars
Task :react-native-push-notification:extractDeepLinksForAarRelease
Task :react-native-push-notification:extractReleaseAnnotations
Task :react-native-push-notification:mergeReleaseGeneratedProguardFiles
Task :react-native-push-notification:mergeReleaseConsumerProguardFiles
Task :react-native-push-notification:mergeReleaseShaders
Task :react-native-push-notification:compileReleaseShaders NO-SOURCE
Task :react-native-push-notification:generateReleaseAssets UP-TO-DATE
Task :react-native-push-notification:packageReleaseAssets
Task :react-native-push-notification:prepareLintJarForPublish
Task :react-native-push-notification:prepareReleaseArtProfile
Task :react-native-push-notification:mergeReleaseJavaResource
Task :react-native-push-notification:syncReleaseLibJars
Task :react-native-push-notification:bundleReleaseLocalLintAar
Task :react-native-push-notification:extractProguardFiles
Task :react-native-push-notification:writeReleaseLintModelMetadata
Task :expo-modules-core:buildCMakeRelWithDebInfo[arm64-v8a] FAILED
Task :react-native-push-notification:generateReleaseLintModel
Task :app:mergeReleaseResources
Task :react-native-reanimated:buildCMakeRelWithDebInfo[arm64-v8a]
FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':expo-modules-core:buildCMakeRelWithDebInfo[arm64-v8a]'. com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/expo/workingdir/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/c2r1g6q3/arm64-v8a' [1/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/NativeModule.cpp.o [2/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/ObjectDeallocator.cpp.o [3/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/LazyObject.cpp.o [4/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/SharedObject.cpp.o [5/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/TypedArray.cpp.o [6/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/JSIUtils.cpp.o [7/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JNIDeallocator.cpp.o [8/31] Building CXX object CMakeFiles/expo-modules-core.dir/home/expo/workingdir/build/node_modules/expo-modules-core/common/cpp/EventEmitter.cpp.o [9/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JNIInjector.cpp.o [10/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/Exceptions.cpp.o [11/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JNIFunctionBody.cpp.o [12/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/ExpoModulesHostObject.cpp.o [13/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaReferencesCache.cpp.o [14/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JSReferencesCache.cpp.o [15/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/types/FrontendConverterProvider.cpp.o [16/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptFunction.cpp.o [17/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JSIContext.cpp.o [18/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o FAILED: CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --sysroot=/home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dexpo_modules_core_EXPORTS -I/home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/reactnativejni/include/react -I/home/expo/workingdir/build/node_modules/react-native/ReactAndroid/src/main/jni/react/turbomodule -I/home/expo/workingdir/build/node_modules/expo-modules-core/android/../common/cpp -I/home/expo/workingdir/build/node_modules/expo-modules-core/android/src/fabric -isystem /home/expo/.gradle/caches/transforms-3/2b68d13ea7b2a5ccdb1c4fbdda7369bb/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/jsi/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/reactnativejni/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/folly_runtime/include -isystem /home/expo/.gradle/caches/transforms-3/fbe406a85f3845607a7ddd40673db61a/transformed/jetified-react-android-0.74.2-release/prefab/modules/react_nativemodule_core/include -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -DREACT_NATIVE_TARGET_VERSION=74 -O2 -g -DNDEBUG -fPIC -DFOLLY_NO_CONFIG=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_MOBILE=1 -DFOLLY_HAVE_RECVMMSG=1 -DFOLLY_HAVE_PTHREAD=1 -DFOLLY_HAVE_XSI_STRERROR_R=1 -O2 -frtti -fexceptions -Wall -fstack-protector-all -DUSE_HERMES=0 -DUNIT_TEST=0 -std=gnu++20 -MD -MT CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o -MF CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o.d -o CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptModuleObject.cpp.o -c /home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/cpp/JavaScriptModuleObject.cpp /home/expo/workingdir/build/node_modules/expo-modules-core/android/src/main/cpp/JavaScriptModuleObject.cpp:148:28: error: no viable constructor or deduction guide for deduction of template arguments of 'weak_ptr' auto weakConstructor = std::weak_ptr(constructor); ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4690:51: note: candidate template ignored: couldn't infer template argument '_Tp' template _LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Yp> const& __r, ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4679:28: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' class _LIBCPP_TEMPLATE_VIS weak_ptr ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4694:5: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' weak_ptr(weak_ptr const& __r) _NOEXCEPT; ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4695:51: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' template _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp> const& __r, ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4701:5: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' weak_ptr(weak_ptr&& __r) _NOEXCEPT; ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4702:51: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' template _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& __r, ^ /home/expo/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4689:23: note: candidate function template not viable: requires 0 arguments, but 1 was provided _LIBCPP_CONSTEXPR weak_ptr() _NOEXCEPT; ^ 1 error generated. [19/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptRuntime.cpp.o [20/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptObject.cpp.o [21/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaCallback.cpp.o [22/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptTypedArray.cpp.o [23/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptValue.cpp.o ninja: build stopped: subcommand failed.

C++ build system [build] failed while executing:
/home/expo/Android/Sdk/cmake/3.22.1/bin/ninja \
-C \
/home/expo/workingdir/build/node_modules/expo-modules-core/android/.cxx/RelWithDebInfo/c2r1g6q3/arm64-v8a \
expo-modules-core
from /home/expo/workingdir/build/node_modules/expo-modules-core/android

  • Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. > Get more help at https://help.gradle.org. BUILD FAILED in 7m 2s Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. For more on this, please refer to https://docs.gradle.org/8.4/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation. 814 actionable tasks: 814 executed Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

Top comments (0)