react-native-image-picker: newArchEnabled=true breaks the build[🐛]
Description
Explain the bug in as much detail as possible
I’ve installed react-native-image-picker and set newArchEnabled to true, after doing so and running the build again it breaks it completely, Ive done a gradle clean, deleted node modules and reinstalled nothing works, except for changing newArchEnabled to false. If I then build the app again everything works perfectly, Ive even tried this on a new build and set newArchEnabled to true and it breaks it.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':react-native-gesture-handler:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
2: Task failed with an exception.
-----------
* What went wrong:
java.lang.StackOverflowError (no error message)
3: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':app:configureCMakeDebug[arm64-v8a]'.
> [CXX1405] error when building with cmake using C:\Users\OneDrive\Documents\new-project\react-native\ReactAndroid\cmake-utils\default-app-setup\CMakeLists.txt: -- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Users/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe - 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: C:/Users/AppData/Local/Android/Sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/clang++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring incomplete, errors occurred!
How to repeat issue and example
Install the react-native-image-picker, set newArchEnabled to true.
Solution
What needs to be done to address this issue?
I need this newArchEnabled to work so that I can use the react-native-image-picker
Additional Information
- Image Picker version: “react-native-image-picker”: “^5.3.0”,
- React Native version: “react-native”: “0.71.4”,
- Platform: Android for now
- Development Operating System: Windows 11
- Dev tools: Android Studio Electric eel
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 2
- Comments: 20
@H4mxa @Johan-dutoit This is still an issue
I used the same dependencies mentioned by @Johan-dutoit but still getting the same problem on windows https://github.com/Johan-

+2
+1