react-native-reanimated
react-native-reanimated copied to clipboard
A problem occurred configuring project ':react-native-reanimated'. > NDK not configured. Download it with SDK manager. Preferred NDK version is '21.0.6113669'.
Seeing this error when upgrading from to react-native-reanimated version 2.4.1
A problem occurred configuring project ':react-native-reanimated'.
NDK not configured. Download it with SDK manager. Preferred NDK version is '21.0.6113669'.
Is there any documentation for how to properly install NDK for this package now? I can't find anything related to NDK in the docs here. Thanks!
Hey! π
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snippet of code, a snack or a link to a GitHub repository that reproduces the problem?
Hey! π
It looks like you've omitted a few important sections from the issue template.
Please complete Description, Snack or minimal code example, Package versions and Affected platforms sections.
Hey millro04 ππΌ
I was facing the same issue. I managed to get a rid of it by doing this.
- Close Android Studio if it's open
- Remove installed NDK with
rm -rf ~/Library/Android/sdk/ndk/21.4.7075529
- Remove your app on your device with
adb uninstall YOUR_BUNDLE_ID
- Remove your app build with
rm -rf android/app/build
- Open Android Studio -> Tools -> SDK Manager -> SDK Tools (Tick NDK βοΈ)
- Rebuilded the app from Android Studio
I have reproduced my current solution.
- Opened android studio
- Check the details NDK required on the error (Show Package Details)
- Download it.
- cd android && ./gradlew clean && cd .. && yarn android
NOTE: on my case, I have missing NDK version 21..1.6352463
+1
Hey! π
The issue doesn't seem to contain a minimal reproduction.
Could you provide a snack or a link to a GitHub repository under your username that reproduces the problem?
For anyone who is having trouble installing ndk version 21.0.6113669 on M1, here's a tracker https://issuetracker.google.com/issues/251482055
+1
+1
Resolve this issue by removing installed NDK from ".../Android/Sdk/Ndk/" folder and then re-run the project. It'll work as charm.
Have a good day π
If it's needed to install the NDK (and here it was also needed to install CMake), should this be added in the install docs?
I'm having this issue on Bitrise...
I was struggling with the same issue with my project.. then this is how I solved it.
- Go to "/android/build.gradle"
- Change the default NDK version just like the image below
+1
+1
so how do you guys solve this to be exactly?
You can open Android Studio, navigate to Tools > SDK Manager, switch to the SDK Tools tab, and check if the NDK is installed. If it's installed, you can try uninstalling and reinstalling it to ensure a clean installation. in my case it was not installed, I just installed it Currently NDK version is 25.1.8937393 for React Native Reanimated.
Seems like we no longer have the luxury to select different versions in the latest Android Studio
@PhillipMwaniki βshow package detailsβ https://github.com/software-mansion/react-native-reanimated/issues/3176#issuecomment-1172293699