-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Android build error: Task :expo-modules-core:buildCMakeDebug[arm64-v8a] FAILED #22029
Comments
I think I solved my issue but I don't really understand how/why but hopefully it helps others. I was following this answer for reference In
Then I created a
Ran Strangely I've found that I can comment out those lines I added above, re-run |
hi there! i tried to clone your repro and it just worked for me. that might be some environment issue. as the |
@Kudo I had the same problem and had to follow the instructions in the comment. Happens for me when try to build on a m1/m2 without rosetta. |
Hi ! @Kudo I hope you will read this :) More detailled stacktrace :
I also find https://stackoverflow.com/questions/74420630/execution-failed-for-task-expo-modules-corebuildcmakedebugarm64-v8a this issue. |
Bro did you find fix? |
hi! @Kudo i am also having the same issue can u help me out with this |
Buddy I fixed it by adding "react-native-gesture-handler": "^2.9.0" this way |
How come |
Neither @matthewparavati 's nor @Kudo 's solution worked for me. I am facing this issue brand new
I am surprised to see this issue is closed without any proper solution. I can confirm that |
still an issue |
please can someone help me solve this issue, thanks |
I've been struggling with this error for a bit and finally resolved it today. For me it ended up not being an issue with Expo at all actually but with how the I changed On a Mac so your mileage will obviously vary |
Has this issue on Pop!_Os 22.04 with: |
Facing same issue tried downgrading cmake version to 3.18.1, deleting gradle cache and deleting node-modules nothing worked. All the library which depends on cmake are failing |
Only thing that worked for me was moving my project directly to my HD, changing its path to something like |
I had this issue and couldnt figure out why for the life of me but I was able to fix this by updating cmake in android studio. I followed these steps:
After I installed it, I created a |
Hello, after some time searching for a solution, as deleting the node modules and cleaning the gradlew didn't work, I noticed that the issue could be related to the project path. Since the project was located in many subfolders, it ended up crashing at this point. I moved it to a folder directly on the C: drive and without any special characters in the folder names, and it worked. |
Please I'm having this issue. How can it be resolved? |
it works when changing ndk version to |
I tried every solution listed above, and nothing worked, because I'm still receiving the same error message present in the title of this section whenever I try to run or build the Android app. |
Upgrading NDK to |
How do I make ndk upgrade please?
…On Mon, 13 May 2024, 13:29 Nick Zhebrun, ***@***.***> wrote:
Upgrading NDK to 26.3.11579264 solves the issue
—
Reply to this email directly, view it on GitHub
<#22029 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMSQ2BGWUO3U2YAHZUOUEVTZCCW4PAVCNFSM6AAAAAAWV3GKBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBXGQ2DQMZUGA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
open |
Thank you so much ! |
Inspired by expo/expo#22029
unfortunately did not work for me umm.. |
Thanks it worked for me don't know how but if it works I don't care How ?, and you all guys try this once i was also stuck on this problem around form 2 weeks and at the end I tried this way which was not supposed to work as per me but it worked. |
The problem probably occurs when there is an incompatibility between the NDK and CMake versions. |
My problem was resolved with this it:
and ignoring this point (including, removing it made it work):
|
hey Devs! For me, the solution was to upgrade the NDK to 26.3.11579264 (downloading it from Android Studio). |
Hey guys, I was having this issue, and it turned out for me I was using the incorrect version of the jdk on my system, I needed to install a version compatible with apple silicon (M1 etc.). So i installed the version recommended in this expo document (https://docs.expo.dev/get-started/set-up-your-environment/?platform=android&device=simulated&mode=development-build&buildEnv=local#install-watchman-and-jdk) and also deleted all other jdk versions installed via brew package manager on my system to make sure expo was building the application with the correct jdk version. |
After updating RN bare project with Expo (RN from 0.72 to 0.74.5, Expo SDK from 49 to 51 and using NDK "26.1.10909125" which is specified in RN 0.74.5 upgrade guide), the issue has been resolved. Before I used "26.3.11579264" and specified it in |
@CyxouD I did same like you, but still getting the problem. |
Minimal reproducible example
https://github.com/matthewparavati/expo-android-build-test
Summary
Unable to build android app in linked repo
Current behavior:
The build fails when running
npm run android
build error
Expected behavior:
Build succeeds when running
npm run android
In the repo, see comment in
android/build.gradle
but I've found that if I change thendkVersion
to24.0.8215888
then the build works. I'm not really sure why and changing that was a complete long shot to try and solve this issue that's been blocking me for a day.Environment
expo-env-info
The text was updated successfully, but these errors were encountered: