Open TuanDangNguyen2003 opened 5 days ago
FAILURE: Build failed with an exception.
Where: Script '/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-autolinking/scripts/android/autolinking_implementation.gradle' line: 408
What went wrong: A problem occurred evaluating project ':expo'.
A problem occurred configuring project ':expo-modules-core'. [CXX1102] Location specified by ndk.dir (~/Android/Sdk/ndk/24.0.8215888) did not contain a valid NDK and couldn't be used
We will try to change the ndk version to 23.1... to see if it is valid.
alkjdalksdj
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':expo-modules-core:buildCMakeDebug[arm64-v8a]'.
com.android.ide.common.process.ProcessException: ninja: Entering directory `/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/android/.cxx/Debug/42c205wd/arm64-v8a' [1/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JNIDeallocator.cpp.o [2/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/LazyObject.cpp.o [3/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/NativeModule.cpp.o [4/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/ObjectDeallocator.cpp.o [5/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/TypedArray.cpp.o [6/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/SharedObject.cpp.o [7/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/EventEmitter.cpp.o [8/31] Building CXX object CMakeFiles/expo-modules-core.dir/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/common/cpp/JSIUtils.cpp.o [9/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/ExpoModulesHostObject.cpp.o [10/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaReferencesCache.cpp.o [11/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/Exceptions.cpp.o [12/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JNIFunctionBody.cpp.o [13/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptFunction.cpp.o [14/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JNIInjector.cpp.o [15/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JSReferencesCache.cpp.o [16/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/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android23 --gcc-toolchain=/home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64 --sysroot=/home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Dexpo_modules_core_EXPORTS -I/home/adamm/.gradle/caches/8.8/transforms/f1cd6a2362eecbc28f27253e3028bd79/transformed/jetified-react-android-0.74.5-debug/prefab/modules/reactnativejni/include/react -I/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/react-native/ReactAndroid/src/main/jni/react/turbomodule -I/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/android/../common/cpp -I/media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/android/src/fabric -isystem /home/adamm/.gradle/caches/8.8/transforms/8e213ea8130cad396c02a2b09c53ee3f/transformed/jetified-fbjni-0.6.0/prefab/modules/fbjni/include -isystem /home/adamm/.gradle/caches/8.8/transforms/f1cd6a2362eecbc28f27253e3028bd79/transformed/jetified-react-android-0.74.5-debug/prefab/modules/jsi/include -isystem /home/adamm/.gradle/caches/8.8/transforms/f1cd6a2362eecbc28f27253e3028bd79/transformed/jetified-react-android-0.74.5-debug/prefab/modules/reactnativejni/include -isystem /home/adamm/.gradle/caches/8.8/transforms/f1cd6a2362eecbc28f27253e3028bd79/transformed/jetified-react-android-0.74.5-debug/prefab/modules/folly_runtime/include -isystem /home/adamm/.gradle/caches/8.8/transforms/f1cd6a2362eecbc28f27253e3028bd79/transformed/jetified-react-android-0.74.5-debug/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 -O0 -fno-limit-debug-info -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++2a -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 /media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/android/src/main/cpp/JavaScriptModuleObject.cpp /media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/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/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4883:51: note: candidate template ignored: couldn't infer template argument '_Tp' template
_LIBCPP_INLINE_VISIBILITY weak_ptr(shared_ptr<_Yp> const& r, ^ /home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4872:28: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' class _LIBCPP_TEMPLATE_VIS weak_ptr ^ /home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4887:5: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' weak_ptr(weak_ptr const& r) _NOEXCEPT; ^ /home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4888: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/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4894:5: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' weak_ptr(weak_ptr&& __r) _NOEXCEPT; ^ /home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4895:51: note: candidate template ignored: could not match 'weak_ptr' against 'shared_ptr' template _LIBCPP_INLINE_VISIBILITY weak_ptr(weak_ptr<_Yp>&& r, ^ /home/adamm/Android/Sdk/ndk/21.4.7075529/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4882:23: note: candidate function template not viable: requires 0 arguments, but 1 was provided _LIBCPP_CONSTEXPR weak_ptr() _NOEXCEPT; ^ 1 error generated. [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/types/AnyType.cpp.o [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/WeakRuntimeHolder.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/JavaScriptObject.cpp.o [23/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptTypedArray.cpp.o [24/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptValue.cpp.o [25/31] Building CXX object CMakeFiles/expo-modules-core.dir/src/main/cpp/JavaScriptWeakObject.cpp.o ninja: build stopped: subcommand failed.
C++ build system [build] failed while executing: /usr/bin/ninja \ -C \ /media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/node_modules/expo-modules-core/android/.cxx/Debug/42c205wd/arm64-v8a \ expo-modules-core from /media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/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.
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.8/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 3m 18s 686 actionable tasks: 672 executed, 14 up-to-date /media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/android/gradlew exited with non-zero code: 1 Error: /media/adamm/Data/Desktop/Work/2-EPFL/BA5/Software-Enterprise/4-Project/edweiss/edweiss-app/android/gradlew exited with non-zero code: 1 at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13) at Object.onceWrapper (node:events:634:26) at ChildProcess.emit (node:events:519:28) at ChildProcess.emit (node:domain:488:12) at maybeClose (node:internal/child_process:1105:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:305:5) ... at spawnAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19) at spawnGradleAsync (/usr/local/lib/node_modules/expo-cli/src/commands/run/android/spawnGradleAsync.ts:83:28) at assembleAsync (/usr/local/lib/node_modules/expo-cli/src/commands/run/android/spawnGradleAsync.ts:57:16) at actionAsync (/usr/local/lib/node_modules/expo-cli/src/commands/run/android/runAndroid.ts:145:22)
This issue focuses on setting up and developing an end-to-end (E2E) test suite for all module to ensure comprehensive testing coverage.
The E2E test should simulate user interactions across every modules.
The goal is to verify that the module behaves as expected in a real-world usage scenario, improving reliability and user experience.