-
-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task :react-native-gesture-handler:compileDebugKotlin FAILED #2427
Comments
Hey! 👋 It looks like you've omitted a few important sections from the issue template. Please complete Steps to reproduce section. |
More Information of error
|
same issue |
same issue with RN version 0.71.4 |
Similar issue but slight different 'boost/mpl/count.hpp' file not found `FAILURE: Build completed with 2 failures. 1: Task failed with an exception.
C++ build system [build] failed while executing:
2: Task failed with an exception.
|
Just download the gesture handler git and build the FabricExample work fine |
Same issue here with RN 0.71.3 and RNGH 2.9.0 |
Same issue: |
same problem here (expo 48, RN 0.71.4, newArch, reanimated3), maybe related to something like expo/expo#20679 |
Same issue: Versions: Enviroment: Would love to hear any potential solutions anyone has come up with... I can't seem to find any info regarding this issue specifically anywhere online, sadly. |
Getting the same issue with the following versions: The error: |
Same Android build issue: RN: 0.71.3 w/ new architecture Update: Upgraded RN to 0.71.6 Not sure if it was the AGP downgrade or RN upgrade but now the react-native-gesture-handler build error is gone. |
gradle 7.4.1 as suggested for expo modules config cause the issue for me |
Same issues occur to me as well after enableNewArch=true. for .gradle/caches/transforms-3/1d77430c69ac7afa83726261db6d41b1/transformed/jetified-react-android-0.71.6-release/prefab/modules/react_nativemodule_core/include/folly/small_vector.h:35:10: fatal error: 'boost/mpl/count.hpp' file not found |
it worked for me. update file build.gradle. and |
An alternative workaround to the problems has been found: upgrade NDK: ndkVersion = "25.0.8775105" |
On React Native 0.72 release candidates, this seems to happen out of the box now with Fabric (probably because 0.72 stopped pinning the Android Gradle Plugin (AGP) to 7.3.1). Simple way to replicate the error:
In React Native 0.72, (or if you need AGP 7.4.2 for some other reason e.g. requirement of some native module), the best workaround is for now probably updating NDK as @Bort-777 suggests ( |
same issue on RN 0.70.1 and RN gesture handler 2.10.1, MacOS 13.3. Any solution? |
same issue on RN 0.72.0-rc3 and RN gesture handler 2.10.1, M1 MacOS 13.3. Any solution? |
updating my android build.gradle buildscript to
as stated here https://stackoverflow.com/a/76409767/8523267 worked for me |
same issue with
|
same issue . |
Guys, just take this char ^ away. End result: "react-native-gesture-handler": "2.9.0" |
thank, it worked for me. Can you explain why? |
android > build.gradle and replace by |
hi |
如果你绝望了,上面的方法都不行的话,你最后试试把android > gradle.properties下的newArchEnabled改成false,就离谱,我试了几天终于发现这个玩意老坑了,原因是 使用此属性可以启用对新体系结构的支持。这将允许您在应用程序中使用TurboModules和Fabric渲染。如果您想编写自定义TurboModule/Fabric组件或使用提供这些组件的库,则应启用此标志。 |
what's your android |
While facing compilation issues in the React Native project, I identified that the error was related to the NDK and SDK configurations within Gradle. I resolved the issue by adjusting the versions in the Gradle configuration file as follows:
This change fixed the compilation errors related to :react-native-gesture-handler:compileDebugKotlin and java.lang.StackOverflowError, allowing the build to complete successfully. This solution may be helpful for other developers facing similar issues with these specific versions of the NDK and SDK. |
Adding following property to gradle.properties file is worked for me.
|
same issue and solutions doesnt work ! |
can you try add this line at android/build.gradle file
do not forget to clean gradlew. |
it's worked for me, thanks |
Hi i got the same error I have upgraded react native version to 0.73.6. After that I'm getting this error can anyone help me this issue to be resolved.
|
I managed to fix this problem by going to the gradle.properties of the library and changing this line
to match my project's kotlin version which was 1.6.0 |
same issue ndkVersion:25.2.9519653
|
I have fixed this error error is
|
The last error is fixed by #2964. If you have any other build issues please open a new issue with a reproducer. |
Description
Dependencies:
run in MacOS, m1
Steps to reproduce
What I've done:
create a new project and run expo prebuild
Install those dependencies(RNGH, react-native-reanimated) with
yarn add
Enable new arch by adding
"jsEngine": "hermes"
toapp.json
,In
gradle.properties
I changed:newArchEnabled=true
andexpo.jsEngine=hermes
In
android/app/build.gradle
:def enableHermes = project.ext.react.get("enableHermes", true);
Then I run
cd android/ && ./gradlew clean
While I run
npx expo run:android
, errors occurred as in the screenshots.Snack or a link to a repository
https://github.com/inmess/rngh-bug-repo.git
Gesture Handler version
2.9.0
React Native version
0.70.5
Platforms
Android
JavaScript runtime
Hermes
Workflow
Expo bare workflow
Architecture
Fabric (New Architecture)
Build type
Debug mode
Device
Real device
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: