You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to run my android emulator, I get the error below.
Stacktrace & log output
* What went wrong:
Execution failed for task ':realm:configureCMakeDebug[arm64-v8a]'.
> [CXX1429] error when building with cmake using /Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android/CMakeLists.txt: -- Android: Targeting API '28' with architecture 'arm64', ABI 'arm64-v8a', and processor 'aarch64'
-- Android: Selected unified Clang toolchain
-- The C compiler identification is Clang 12.0.8
-- The CXX compiler identification is Clang 12.0.8
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/username/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Users/username/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Getting https://static.realm.io/downloads/dependencies/openssl/3.2.0/openssl-3.2.0-arm64-android.tar.gz...
-- Configuring incomplete, errors occurred!
See also "/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android/.cxx/Debug/4s52u13y/arm64-v8a/CMakeFiles/CMakeOutput.log".
C++ build system [configure] failed while executing:
/Users/username/Library/Android/sdk/cmake/3.22.1/bin/cmake \
-H/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android \
-DCMAKE_SYSTEM_NAME=Android \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_SYSTEM_VERSION=28 \
-DANDROID_PLATFORM=android-28 \
-DANDROID_ABI=arm64-v8a \
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
-DANDROID_NDK=/Users/username/Library/Android/sdk/ndk/23.1.7779620 \
-DCMAKE_ANDROID_NDK=/Users/username/Library/Android/sdk/ndk/23.1.7779620 \
-DCMAKE_TOOLCHAIN_FILE=/Users/username/Library/Android/sdk/ndk/23.1.7779620/build/cmake/android.toolchain.cmake \
-DCMAKE_MAKE_PROGRAM=/Users/username/Library/Android/sdk/cmake/3.22.1/bin/ninja \
-DCMAKE_CXX_FLAGS=-std=c++20 \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android/build/intermediates/cxx/Debug/4s52u13y/obj/arm64-v8a \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android/build/intermediates/cxx/Debug/4s52u13y/obj/arm64-v8a \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_FIND_ROOT_PATH=/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android/.cxx/Debug/4s52u13y/prefab/arm64-v8a/prefab \
-B/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android/.cxx/Debug/4s52u13y/arm64-v8a \
-GNinja \
-DANDROID_STL=c++_shared \
-DCMAKE_CXX_VISIBILITY_PRESET=hidden \
-DREACT_NATIVE_ROOT_DIR=/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/react-native
from /Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/binding/android
CMake Error at /Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/prebuilds/android/arm64-v8a/share/cmake/Realm/AcquireRealmDependency.cmake:38 (message):
Downloading ... Failed. Status: 22;"HTTP response code said error"
Call Stack (most recent call first):
/Users/username/Library/CloudStorage/OneDrive-org/Documents/Code/org/app/node_modules/realm/prebuilds/android/arm64-v8a/share/cmake/Realm/RealmConfig.cmake:10 (realm_acquire_dependency)
CMakeLists.txt:51 (find_package)
How frequently does the bug occur?
Always
Description
When I try to run my android emulator, I get the error below.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
run yarn react-native run-android
Version
Android SDK version 16.0
What services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Mac OS / Android 11
Build environment
Versions:
yarn - 1.22.22
gradle - 7.5.1
java - 17.0.14
react - native ^0.71.4
realm - 12.11.1
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: