-
Type: Bug
-
Resolution: Unresolved
-
Priority: Unknown
-
None
-
Affects Version/s: None
-
Component/s: None
How frequently does the bug occur?
Always
Description
Can't build app without new architecture and bridgeless mode, but with enabled hermes after update from 0.74.0 to 0.74.4(also tried 0.74.5, but the same error happen).
My dependencies
"dependencies": { "@axenda/zatca": "^1.0.4", "@gorhom/bottom-sheet": "^4.6.4", "@notifee/react-native": "7.8.2", "@react-native-async-storage/async-storage": "^1.24.0", "@react-native-community/blur": "^4.4.0", "@react-native-community/netinfo": "^11.1.1", "@react-native-firebase/app": "^20.3.0", "@react-native-firebase/messaging": "^20.3.0", "@react-navigation/native": "^6.1.18", "@react-navigation/stack": "^6.4.1", "@realm/react": "^0.9.0", "@sentry/react-native": "^5.27.0", "axios": "^1.5.0", "buffer": "^6.0.3", "crypto-js": "^4.2.0", "dayjs": "^1.11.9", "eslint-config-prettier": "^9.0.0", "eslint-plugin-prettier": "5.0.0", "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-native": "^4.0.0", "eslint-plugin-typescript": "^0.14.0", "highlight-words-core": "^1.2.2", "i18next": "^23.5.1", "nodejs-mobile-react-native": "^18.17.7", "react": "18.2.0", "react-dom": "18.2.0", "react-i18next": "^13.2.2", "react-is": "^18.3.1", "react-native": "0.74.4", "react-native-codegen": "^0.70.7", "react-native-config": "^1.5.1", "react-native-device-info": "^10.13.2", "react-native-drawer-layout": "^3.3.2", "react-native-flash-message": "^0.4.2", "react-native-fs": "^2.20.0", "react-native-gesture-handler": "2.17.1", "react-native-keychain": "^7.0.0", "react-native-localize": "^3.0.6", "react-native-permissions": "4.1.5", "react-native-reanimated": "^3.14.0", "react-native-safe-area-context": "3.4.1", "react-native-screens": "^3.32.0", "react-native-select-dropdown": "^4.0.1", "react-native-svg": "^15.4.0", "react-native-uuid": "^2.0.1", "react-native-view-shot": "3.0.2", "react-qr-code": "^2.0.12", "realm": "^12.12.1", "rn-tooltip": "^3.0.3", "styled-components": "^6.1.8", "styled-system": "^5.1.5" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.74.86", "@react-native/eslint-config": "0.74.86", "@react-native/metro-config": "0.74.86", "@react-native/typescript-config": "0.74.86", "@types/crypto-js": "^4.2.2", "@types/highlight-words-core": "^1.2.3", "@types/lodash": "^4.17.0", "@types/react": "^18.2.6", "@types/react-is": "^18", "@types/react-native": "^0.73.0", "@types/react-test-renderer": "^18.0.0", "@types/styled-system": "^5.1.22", "@typescript-eslint/eslint-plugin": "5.62.0", "@typescript-eslint/parser": "5.62.0", "babel-jest": "^29.6.3", "babel-plugin-formatjs": "^10.5.13", "babel-plugin-module-resolver": "^5.0.0", "eslint": "^8.19.0", "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-simple-import-sort": "^10.0.0", "jest": "^29.6.3", "metro": "0.76.8", "metro-react-native-babel-preset": "0.76.8", "prettier": "^3.3.3", "react-test-renderer": "18.2.0", "swagger-typescript-api": "^13.0.3", "typescript": "5.0.4", "typescript-eslint": "^7.1.1", "typescript-styled-plugin": "0.18.2" }, "engines": { "node": ">=18" }, "packageManager": "yarn@4.3.1"
My android>build.gradle
buildscript { ext { buildToolsVersion = "34.0.0" minSdkVersion = 23 compileSdkVersion = 34 targetSdkVersion = 34 ndkVersion = "26.1.10909125" kotlinVersion = "1.9.22" } repositories { google() mavenCentral() } dependencies { classpath("com.google.gms:google-services:4.4.2") classpath("com.android.tools.build:gradle") classpath("com.facebook.react:react-native-gradle-plugin") classpath("org.jetbrains.kotlin:kotlin-gradle-plugin") } } apply plugin: "com.facebook.react.rootproject"
P.S. Tried to build with new react native architecture and 0.74.5 version of react native but without bridgeless. The same error persists.
P.S. #2. Tried to build with bridgeless and the same as above, but error persists.
P.S. #3. Tried to build with empty project, but only install these dependencies
{ "name": "ReproducerApp", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "lint": "eslint .", "start": "react-native start", "test": "jest" }, "dependencies": { "@realm/react": "^0.9.0", "react": "18.2.0", "react-native": "0.74.5", "realm": "^12.12.1" }, "devDependencies": { "@babel/core": "^7.20.0", "@babel/preset-env": "^7.20.0", "@babel/runtime": "^7.20.0", "@react-native/babel-preset": "0.74.87", "@react-native/eslint-config": "0.74.87", "@react-native/metro-config": "0.74.87", "@react-native/typescript-config": "0.74.87", "@types/react": "^18.2.6", "@types/react-test-renderer": "^18.0.0", "babel-jest": "^29.6.3", "eslint": "^8.19.0", "jest": "^29.6.3", "prettier": "2.8.8", "react-test-renderer": "18.2.0", "typescript": "5.0.4" }, "engines": { "node": ">=18" }, "packageManager": "yarn@3.6.4" }
An error persist even here
Stacktrace & log output
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
> Task :realm:configureCMakeDebug[arm64-v8a] FAILED C/C++: CMake Error at /Users/pprnd/Documents/yalla_cashier/node_modules/realm/prebuilds/android/arm64-v8a/share/cmake/Realm/AcquireRealmDependency.cmake:38 (message): C/C++: Downloading ... Failed. Status: 60;"SSL peer certificate or SSH remote C/C++: key was not OK" C/C++: Call Stack (most recent call first): C/C++: /Users/pprnd/Documents/yalla_cashier/node_modules/realm/prebuilds/android/arm64-v8a/share/cmake/Realm/RealmConfig.cmake:10 (realm_acquire_dependency) C/C++: CMakeLists.txt:53 (find_package) 425 actionable tasks: 420 executed, 5 up-to-date
BUILD FAILED in 1m 34s
error Failed to install the app. Command failed with exit code 1: ./gradlew app:installQadebug -PreactNativeDevServerPort=8081
Recrawled this watch 21 times, most recently because:
Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
* What went wrong: Execution failed for task ':realm:configureCMakeDebug[arm64-v8a]'. > [CXX1429] error when building with cmake using /Users/pprnd/Documents/yalla_cashier/node_modules/realm/binding/android/CMakeLists.txt: -- The C compiler identification is Clang 14.0.6 -- The CXX compiler identification is Clang 14.0.6 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /Users/pprnd/Library/Android/sdk/ndk/25.1.8937393/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/pprnd/Library/Android/sdk/ndk/25.1.8937393/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!
Can you reproduce the bug?
Always
Reproduction Steps
- Install react native project with listed dependencies.
- Try to build app without enabled new architecture, bridgeless, but with hermes engine.
- See an error displayed on colsole
Version
12.12.1
What services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
Android
Build environment
No response
Cocoapods version
2.6.0